]> git.sur5r.net Git - openldap/commitdiff
Allow mods to be NULL in slapi_int_ldapmods2modifications()
authorLuke Howard <lukeh@openldap.org>
Fri, 27 Aug 2004 17:27:09 +0000 (17:27 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 27 Aug 2004 17:27:09 +0000 (17:27 +0000)
servers/slapd/slapi/slapi_utils.c

index 5d23e1b648ddc86e39cf078f4a4488096c17d0ac..a4f177246da2d4ae8ad874b29d88325ce9a50d3a 100644 (file)
@@ -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++ ) {