mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Allow mods to be NULL in slapi_int_ldapmods2modifications()
This commit is contained in:
parent
8c764e8d63
commit
410ca3d1a9
1 changed files with 4 additions and 0 deletions
|
|
@ -3510,6 +3510,10 @@ Modifications *slapi_int_ldapmods2modifications (LDAPMod **mods)
|
|||
Modifications *modlist = NULL, **modtail;
|
||||
LDAPMod **modp;
|
||||
|
||||
if ( mods == NULL ) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
modtail = &modlist;
|
||||
|
||||
for( modp = mods; *modp != NULL; modp++ ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue