From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 27 Mar 2011 14:03:25 +0000 (+0000)
Subject: Mark the errno overloading in connect_to() as questionable, too
X-Git-Tag: v_3_0_18~276
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=a3ee8549f25573ab20c3cde9dd52bbb3205cebfc;p=privoxy.git

Mark the errno overloading in connect_to() as questionable, too
---

diff --git a/jbsockets.c b/jbsockets.c
index c4584e2e..66078bdf 100644
--- a/jbsockets.c
+++ b/jbsockets.c
@@ -1,4 +1,4 @@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.93 2011/03/27 13:58:33 fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.94 2011/03/27 14:02:53 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
@@ -147,6 +147,11 @@ jb_socket connect_to(const char *host, int portnum, struct client_state *csp)
 
    do
    {
+      /*
+       * XXX: The whole errno overloading is ridiculous and should
+       *      be replaced with something sane and thread safe
+       */
+      /* errno = 0;*/
 #ifdef HAVE_RFC2553
       fd = rfc2553_connect_to(host, portnum, csp);
 #else