From: Hallvard Furuseth Date: Wed, 12 Jan 2011 14:23:07 +0000 (+0000) Subject: vc.c: ber_printf/flatten rc==LBER_ERROR -> rc<0 X-Git-Tag: MIGRATION_CVS2GIT~214 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77f78f1d57ebba5aca63ee8f8f22f334718a4054;p=openldap vc.c: ber_printf/flatten rc==LBER_ERROR -> rc<0 --- diff --git a/libraries/libldap/vc.c b/libraries/libldap/vc.c index ef5d09402c..47b0b8d758 100644 --- a/libraries/libldap/vc.c +++ b/libraries/libldap/vc.c @@ -235,7 +235,7 @@ ldap_verify_credentials(LDAP *ld, } } - if (rc == LBER_ERROR) { + if (rc < 0) { rc = ld->ld_errno = LDAP_ENCODING_ERROR; goto done; } @@ -259,14 +259,14 @@ ldap_verify_credentials(LDAP *ld, rc = ber_printf(ber, /*"{"*/ "N}"); } - if (rc == LBER_ERROR) { + if (rc < 0) { rc = ld->ld_errno = LDAP_ENCODING_ERROR; goto done; } rc = ber_flatten2(ber, &reqdata, 0); - if (rc == LBER_ERROR) { + if (rc < 0) { rc = ld->ld_errno = LDAP_ENCODING_ERROR; goto done; }