From: Kurt Zeilenga Date: Fri, 30 Jan 2004 05:59:08 +0000 (+0000) Subject: Assert if result code is negative X-Git-Tag: OPENLDAP_REL_ENG_2_1_27~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=beb9682f98bd178327796fa5bc52b12c935376ec;p=openldap Assert if result code is negative --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index c0eabf10ef..8eea530182 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -452,7 +452,7 @@ slap_send_ldap_result( ber_int_t msgid; char *tmp = NULL; - assert( !LDAP_API_ERROR( err ) ); + assert( !LDAP_API_ERROR( err ) && ( err >= 0 )); #ifdef NEW_LOGGING LDAP_LOG( OPERATION, ENTRY,