From 8d48005d838df2d1d0aa294d6711070fd45b427f Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 25 Jul 2005 04:43:07 +0000 Subject: [PATCH] Careful not to disturb result codes --- servers/slapd/slapi/slapi_ops.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 -- 2.39.5