mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha
This commit is contained in:
parent
12b87ceebc
commit
2c27a6abcf
1 changed files with 1 additions and 2 deletions
|
|
@ -153,8 +153,7 @@ cldap_open( LDAP_CONST char *host, int port )
|
|||
}
|
||||
LDAP_FREE( host_dup );
|
||||
} else {
|
||||
address = INADDR_LOOPBACK;
|
||||
sock.sin_addr.s_addr = htonl( address );
|
||||
sock.sin_addr.s_addr = htonl( INADDR_LOOPBACK );
|
||||
if ( add_addr( ld, (struct sockaddr *)&sock ) < 0 ) {
|
||||
ldap_ld_free( ld, 1, NULL, NULL );
|
||||
DO_RETURN( NULL );
|
||||
|
|
|
|||
Loading…
Reference in a new issue