mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 20:34:08 -05:00
Return LDAP_PARAM_ERROR when NULL passed to internal SLAPI functions
This commit is contained in:
parent
ff263ec6a7
commit
68ed72e4c7
1 changed files with 9 additions and 7 deletions
|
|
@ -465,7 +465,7 @@ cleanup:
|
|||
* Description : Plugin functions call this routine to delete an entry
|
||||
* in the backend directly
|
||||
* Return values : LDAP_SUCCESS
|
||||
* LDAP_OPERAITONS_ERROR
|
||||
* LDAP_PARAM_ERROR
|
||||
* LDAP_NO_MEMORY
|
||||
* LDAP_OTHER
|
||||
* LDAP_UNWILLING_TO_PERFORM
|
||||
|
|
@ -492,7 +492,7 @@ slapi_delete_internal(
|
|||
int isCritical;
|
||||
|
||||
if ( ldn == NULL ) {
|
||||
rc = LDAP_OPERATIONS_ERROR;
|
||||
rc = LDAP_PARAM_ERROR;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
@ -586,7 +586,7 @@ slapi_add_entry_internal(
|
|||
int rc = LDAP_SUCCESS;
|
||||
|
||||
if ( e == NULL ) {
|
||||
rc = LDAP_OPERATIONS_ERROR;
|
||||
rc = LDAP_PARAM_ERROR;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
@ -670,7 +670,7 @@ slapi_add_internal(
|
|||
int i, rc=LDAP_SUCCESS;
|
||||
|
||||
if ( mods == NULL || *mods == NULL || dn == NULL || *dn == '\0' ) {
|
||||
rc = LDAP_OPERATIONS_ERROR ;
|
||||
rc = LDAP_PARAM_ERROR ;
|
||||
}
|
||||
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
|
|
@ -709,7 +709,8 @@ slapi_add_internal(
|
|||
* Description : Plugin functions call this routine to modify the rdn
|
||||
* of an entry in the backend directly
|
||||
* Return values : LDAP_SUCCESS
|
||||
* LDAP_OPERAITONS_ERROR
|
||||
* LDAP_PARAM_ERROR
|
||||
* LDAP_OPERATIONS_ERROR
|
||||
* LDAP_NO_MEMORY
|
||||
* LDAP_OTHER
|
||||
* LDAP_UNWILLING_TO_PERFORM
|
||||
|
|
@ -873,8 +874,9 @@ cleanup:
|
|||
* Description: Plugin functions call this routine to modify an entry
|
||||
* in the backend directly
|
||||
* Return values : LDAP_SUCCESS
|
||||
* LDAP_OPERAITONS_ERROR
|
||||
* LDAP_PARAM_ERROR
|
||||
* LDAP_NO_MEMORY
|
||||
* LDAP_OPERATIONS_ERROR
|
||||
* LDAP_OTHER
|
||||
* LDAP_UNWILLING_TO_PERFORM
|
||||
*/
|
||||
|
|
@ -908,7 +910,7 @@ slapi_modify_internal(
|
|||
Modifications tmp;
|
||||
|
||||
if ( mods == NULL || *mods == NULL || ldn == NULL ) {
|
||||
rc = LDAP_OPERATIONS_ERROR ;
|
||||
rc = LDAP_PARAM_ERROR ;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue