--- stunnel-4.54/src/options.c.orig	2013-02-03 18:56:27.000000000 +0100
+++ stunnel-4.54/src/options.c	2013-02-03 19:10:34.000000000 +0100
@@ -1925,8 +1925,8 @@
                 return "'accept' option is only allowed in a [section]";
             /* no need to check for section->option.sni in inetd mode,
                as it requires valid sections to be set */
-            if(endpoints!=1)
-                return "Inetd mode must define one endpoint";
+            if(endpoints<1||endpoints>2)
+                return "Inetd mode must define at least one endpoint";
         }
         if(context_init(section)) /* initialize SSL context */
             return "Failed to initialize SSL context";
