From 410ca3d1a93e014f6fd3f77161ac3f47327029e8 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 27 Aug 2004 17:27:09 +0000 Subject: [PATCH] Allow mods to be NULL in slapi_int_ldapmods2modifications() --- servers/slapd/slapi/slapi_utils.c | 4 ++++ 1 file changed, 4 insertions(+) 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++ ) { -- 2.39.5