]> git.sur5r.net Git - openldap/commitdiff
Fix up return values in new slapi private API
authorLuke Howard <lukeh@openldap.org>
Mon, 20 Jan 2003 00:11:56 +0000 (00:11 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 20 Jan 2003 00:11:56 +0000 (00:11 +0000)
servers/slapd/slapi/slapi_utils.c

index 06b862bb89e896c1753a73b6f2be14a0a9018836..cc4fa53af1c1ab21dcfb4f390689bd2bc0bc8a08 100644 (file)
@@ -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