Skip to content
Snippets Groups Projects
Commit 2c27a6ab authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha

parent 12b87cee
Branches
Tags
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment