]> git.sur5r.net Git - openldap/commitdiff
Import minor WINSOCK dll fix.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 1999 19:25:35 +0000 (19:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 1999 19:25:35 +0000 (19:25 +0000)
libraries/libldap/open.c

index 7146c9b67fd4b98a46a12f46e827900675936783..190d4028b9c4795b02b7c64f75c6af0bc39fd6de 100644 (file)
@@ -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 ) {