From a3ee8549f25573ab20c3cde9dd52bbb3205cebfc Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 27 Mar 2011 14:03:25 +0000 Subject: [PATCH] Mark the errno overloading in connect_to() as questionable, too --- jbsockets.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2