]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/cldap.c
Braced ldap_connect_to_path() in #ifdef LDAP_PF_LOCAL so as to compile
[openldap] / libraries / libldap / cldap.c
index de6208136b3d5f89b6d1c0df4b3b531a6239c800..46872b47413cad3deae2cd1721d3c4dee76a334a 100644 (file)
@@ -129,9 +129,9 @@ cldap_open( LDAP_CONST char *host, int port )
                }
 
                for ( i = 0; hp->h_addr_list[ i ] != 0; ++i ) {
-                   SAFEMEMCPY( (char *)&sock.sin_addr.s_addr,
+                   SAFEMEMCPY( (char *)&sock.sin_addr,
                            (char *)hp->h_addr_list[ i ],
-                           sizeof(sock.sin_addr.s_addr));
+                           sizeof(sock.sin_addr));
                    if ( add_addr( ld, (struct sockaddr *)&sock ) < 0 ) {
                        ldap_ld_free( ld, 1, NULL, NULL );
                        LDAP_FREE( host_dup );