From: Hallvard Furuseth Date: Tue, 13 Jul 1999 09:41:25 +0000 (+0000) Subject: Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha X-Git-Tag: OPENLDAP_REL_ENG_2_BP~162 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c27a6abcf12d99a85a6cb80910978465c988ebb;p=openldap Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha --- diff --git a/libraries/libldap/cldap.c b/libraries/libldap/cldap.c index dbe1abdae4..42f3072851 100644 --- a/libraries/libldap/cldap.c +++ b/libraries/libldap/cldap.c @@ -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 );