From: Luke Howard Date: Fri, 27 Aug 2004 17:27:09 +0000 (+0000) Subject: Allow mods to be NULL in slapi_int_ldapmods2modifications() X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~625 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=410ca3d1a93e014f6fd3f77161ac3f47327029e8;p=openldap Allow mods to be NULL in slapi_int_ldapmods2modifications() --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 5d23e1b648..a4f177246d 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -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++ ) {