From 2c27a6abcf12d99a85a6cb80910978465c988ebb Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 13 Jul 1999 09:41:25 +0000 Subject: [PATCH] Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha --- libraries/libldap/cldap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); -- 2.39.5