Hi again.

Perhaps, more elegant patch should be:

# enable TIMEOUTclose=0
diff -urN stunnel-4.05.orig/src/client.c stunnel-4.05/src/client.c
--- stunnel4-4.22/src/options.c.orig 
+++ stunnel4-4.22/src/options.c
@@ -1179,7 +1179,7 @@
     case CMD_EXEC:
         if(strcasecmp(opt, "TIMEOUTclose"))
             break;
-        if(atoi(arg)>0 || !strcmp(arg, "0"))
+        if(atoi(arg)>=0)
             section->timeout_close=atoi(arg);
         else
             return "Illegal close timeout";



Greetings

-- 
http://soleup.eup.uva.es/mariodebian

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to