From 97c356a610e7428e487ffc2df8e9ce84fa081a19 Mon Sep 17 00:00:00 2001 From: "richm%stanfordalumni.org" Date: Thu, 11 May 2006 14:40:48 +0000 Subject: [PATCH] Bug: 337210 Description: ber_scanf sometimes gives incorrect return code on 64-bit Fix: ber_get_boolean needs to get the return value of ber_get_int as an unsigned long and return that unsigned long value --- directory/c-sdk/ldap/libraries/liblber/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directory/c-sdk/ldap/libraries/liblber/decode.c b/directory/c-sdk/ldap/libraries/liblber/decode.c index 9336fe5f3bf..e622051d89c 100644 --- a/directory/c-sdk/ldap/libraries/liblber/decode.c +++ b/directory/c-sdk/ldap/libraries/liblber/decode.c @@ -397,7 +397,7 @@ LDAP_CALL ber_get_boolean( BerElement *ber, int *boolval ) { long longbool; - int rc; + unsigned long rc; rc = ber_get_int( ber, &longbool ); *boolval = longbool;