mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
vc.c: ber_printf/flatten rc==LBER_ERROR -> rc<0
This commit is contained in:
parent
6a544b7193
commit
77f78f1d57
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue