Update of /cvsroot/radmind/radmind
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14167
Modified Files:
connect.c
Log Message:
Temporary storage of errno doesn't need to be a global.
Index: connect.c
===================================================================
RCS file: /cvsroot/radmind/radmind/connect.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** connect.c 6 Jan 2008 21:31:39 -0000 1.32
--- connect.c 19 Aug 2008 17:49:56 -0000 1.33
***************
*** 43,47 ****
extern SSL_CTX *ctx;
- int connectsn2_errno = 0;
#ifdef HAVE_ZLIB
--- 43,46 ----
***************
*** 61,64 ****
--- 60,64 ----
int s;
int one = 1;
+ int connectsn2_errno = 0;
SNET *sn = NULL;
struct protoent *proto;
***************
*** 86,89 ****
--- 86,90 ----
if ( verbose ) printf( "failed: %s\n", strerror( errno ));
(void)close( s );
+ errno = connectsn2_errno;
return( NULL );
}
***************
*** 154,158 ****
}
fprintf( stderr, "connection to %s failed: %s\n",
! inet_ntoa( sin.sin_addr ), strerror( connectsn2_errno ));
fprintf( stderr, "%s: connection failed\n", host );
return( NULL );
--- 155,159 ----
}
fprintf( stderr, "connection to %s failed: %s\n",
! inet_ntoa( sin.sin_addr ), strerror( errno ));
fprintf( stderr, "%s: connection failed\n", host );
return( NULL );
|