From 77f78f1d57ebba5aca63ee8f8f22f334718a4054 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 12 Jan 2011 14:23:07 +0000 Subject: [PATCH] vc.c: ber_printf/flatten rc==LBER_ERROR -> rc<0 --- libraries/libldap/vc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5