From: Luke Howard Date: Mon, 20 Jan 2003 00:11:56 +0000 (+0000) Subject: Fix up return values in new slapi private API X-Git-Tag: NO_SLAP_OP_BLOCKS~595 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9278e54ec1afc060860fb4917fb1b6ddb5c9750;p=openldap Fix up return values in new slapi private API --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 06b862bb89..cc4fa53af1 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -1145,6 +1145,8 @@ int slapi_backend_set_pb( Slapi_PBlock *pb, Backend *be ) rc = slapi_pblock_set(pb, SLAPI_BE_TYPE, (void *)be->bd_info->bi_type); if (rc != LDAP_SUCCESS) return rc; + + return LDAP_SUCCESS; #else return -1; #endif /* defined(LDAP_SLAPI) */ @@ -1244,8 +1246,10 @@ int slapi_operation_set_pb( Slapi_PBlock *pb, Operation *op ) return rc; rc = slapi_pblock_set(pb, SLAPI_REQUESTOR_DN, (void *)op->o_ndn.bv_val); + if (rc != LDAP_SUCCESS) + return rc; - return rc; + return LDAP_SUCCESS; #else return -1; #endif