From 4b88769c0ecb4b0d43fad38bd15273a490e3ddf3 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 30 Jul 2011 15:12:02 +0000 Subject: [PATCH] Set socket_error to errno if connecting fails in rfc2553_connect_to() Previously rejected direct connections could be incorrectly reported as DNS issues. --- jbsockets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jbsockets.c b/jbsockets.c index 13d42829..265771fe 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.106 2011/07/17 13:36:27 fabiankeil Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.107 2011/07/17 13:36:48 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ @@ -313,6 +313,7 @@ static jb_socket rfc2553_connect_to(const char *host, int portnum, struct client if (errno != EINTR) { + socket_error = errno; close_socket(fd); connect_failed = 1; break; -- 2.39.2