diff options
| author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2014-12-12 04:10:50 +0000 |
|---|---|---|
| committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2014-12-12 04:10:50 +0000 |
| commit | ba87e25c2ed9c00232180c4aad967d617f816283 (patch) | |
| tree | 478852bc9e3903f605e5e0b46c9b5bdf0d2aab7c /libsm/errstring.c | |
| parent | 4a67213fda7a17ff204a52fc800a87333e14f7db (diff) | |
Diffstat (limited to 'libsm/errstring.c')
| -rw-r--r-- | libsm/errstring.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libsm/errstring.c b/libsm/errstring.c index 7233c5a9b3f73..01d5a6419f41f 100644 --- a/libsm/errstring.c +++ b/libsm/errstring.c @@ -264,10 +264,12 @@ sm_errstring(errnum) #if LDAPMAP /* - ** LDAP error messages. + ** LDAP error messages. Handle small negative errors from + ** libldap (in the range -E_LDAP_SHIM to zero, offset by E_LDAPBASE) + ** as well. */ - if (errnum >= E_LDAPBASE) + if (errnum >= E_LDAPBASE - E_LDAP_SHIM) return ldap_err2string(errnum - E_LDAPBASE); #endif /* LDAPMAP */ |
