]> git.sur5r.net Git - openldap/commitdiff
abort if result code is negative
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Apr 2003 21:05:06 +0000 (21:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Apr 2003 21:05:06 +0000 (21:05 +0000)
servers/slapd/result.c

index 438b869b49e1f0724f90a205f16a295cc78d3d0a..4d2dbe758251914ae00ca95562022090c4686dc0 100644 (file)
@@ -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,