mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
Fix up return values in new slapi private API
This commit is contained in:
parent
d3292b83fa
commit
c9278e54ec
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue