]> git.sur5r.net Git - openldap/commitdiff
Careful not to disturb result codes
authorLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 04:43:07 +0000 (04:43 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 25 Jul 2005 04:43:07 +0000 (04:43 +0000)
servers/slapd/slapi/slapi_ops.c

index e780979b44e40787311c7393e6f36dcec2a813f4..017ac309414e19de955d130c8d873f48bb0bc1e0 100644 (file)
@@ -372,19 +372,21 @@ slapi_int_func_internal_pb( Slapi_PBlock *pb, slap_operation_t which )
 {
        BI_op_bind              **func;
        SlapReply               *rs = &pb->rs;
+       int                     rc;
 
        PBLOCK_ASSERT_INTOP( pb, 0 );
 
-       rs->sr_err = slapi_int_get_ctrls( pb );
-       if ( rs->sr_err != LDAP_SUCCESS ) {
-               return rs->sr_err;
+       rc = slapi_int_get_ctrls( pb );
+       if ( rc != LDAP_SUCCESS ) {
+               rs->sr_err = rc;
+               return rc;
        }
 
        func = &pb->pop->o_bd->be_bind;
 
-       rs->sr_err = func[which]( pb->pop, &pb->rs );
+       rc = func[which]( pb->pop, &pb->rs );
 
-       return rs->sr_err;
+       return rc;
 }
 
 int