From: Luke Howard Date: Mon, 25 Jul 2005 04:43:07 +0000 (+0000) Subject: Careful not to disturb result codes X-Git-Tag: OPENLDAP_AC_BP~218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d48005d838df2d1d0aa294d6711070fd45b427f;p=openldap Careful not to disturb result codes --- diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index e780979b44..017ac30941 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -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