From: Kurt Zeilenga Date: Wed, 2 Apr 2003 21:05:06 +0000 (+0000) Subject: abort if result code is negative X-Git-Tag: AUTOCONF_2_57~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1626f722c577006332889c4392e14286f08f12d9;p=openldap abort if result code is negative --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 438b869b49..4d2dbe7582 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -421,7 +421,7 @@ slap_send_ldap_result( Operation *op, SlapReply *rs ) const char *otext = rs->sr_text; BerVarray oref = rs->sr_ref; - assert( !LDAP_API_ERROR( rs->sr_err ) ); + assert( !LDAP_API_ERROR( rs->sr_err ) && ( rs->sr_err >= 0 )); #ifdef NEW_LOGGING LDAP_LOG( OPERATION, ENTRY,