From: oes Date: Wed, 20 Nov 2002 14:37:24 +0000 (+0000) Subject: Fixed Win32 error logging in bind_port. X-Git-Tag: v_3_0_1~76 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=b70ce173509ffa27d191114d186e67abd1343c4b;p=privoxy.git Fixed Win32 error logging in bind_port. Thanks to Oliver Stoeneberg for the hint. --- diff --git a/jbsockets.c b/jbsockets.c index 9ee43150..758e5cfe 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,7 +1,7 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35 2002/04/26 15:50:04 joergs Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35.2.1 2002/05/26 23:41:27 joergs Exp $"; /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ + * File : $Source: /cvsroot/ijbswa/current/Attic/jbsockets.c,v $ * * Purpose : Contains wrappers for system-specific sockets code, * so that the rest of Junkbuster can be more @@ -35,6 +35,9 @@ const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.35 2002/04/26 15:50:04 joergs * * Revisions : * $Log: jbsockets.c,v $ + * Revision 1.35.2.1 2002/05/26 23:41:27 joergs + * AmigaOS: Fixed wrong type of len in write_socket() + * * Revision 1.35 2002/04/26 15:50:04 joergs * AmigaOS: No socklen_t, added AMIGA to the systems using int instead. * @@ -596,6 +599,7 @@ int bind_port(const char *hostnam, int portnum, jb_socket *pfd) { close_socket (fd); #ifdef _WIN32 + errno = WSAGetLastError(); if (errno == WSAEADDRINUSE) #else if (errno == EADDRINUSE)