diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2014-12-12 04:10:50 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2014-12-12 04:10:50 +0000 |
commit | fe7726f7f551319623ef61624b8a3c685b1688cc (patch) | |
tree | 478852bc9e3903f605e5e0b46c9b5bdf0d2aab7c /libsm/errstring.c | |
parent | e978ee268a13bb8489e79a50cf49f012385863d0 (diff) | |
download | FreeBSD-src-fe7726f7f551319623ef61624b8a3c685b1688cc.zip FreeBSD-src-fe7726f7f551319623ef61624b8a3c685b1688cc.tar.gz |
Import sendmail 8.15.1
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 7233c5a..01d5a64 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 */ |