From: Kurt Zeilenga Date: Fri, 26 Mar 1999 19:25:35 +0000 (+0000) Subject: Import minor WINSOCK dll fix. X-Git-Tag: OPENLDAP_REL_ENG_1_2_1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8900d9d3518e71d127274083424c41e50d66b6d4;p=thirdparty%2Fopenldap.git Import minor WINSOCK dll fix. --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 7146c9b67f..190d4028b9 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -137,9 +137,11 @@ ldap_init( char *defhost, int defport ) } /* The WinSock DLL is acceptable. Proceed. */ #elif HAVE_WINSOCK - if ( WSAStartup( 0x0101, &wsadata ) != 0 ) { +{ WSADATA wsaData + if ( WSAStartup( 0x0101, &wsaData ) != 0 ) { return( NULL ); } +} #endif if ( (ld = (LDAP *) calloc( 1, sizeof(LDAP) )) == NULL ) {