]> git.sur5r.net Git - openldap/commitdiff
ITS#7065 fix cn=config modify replace/delete crash
authorHoward Chu <hyc@openldap.org>
Tue, 1 Nov 2011 18:40:04 +0000 (11:40 -0700)
committerHoward Chu <hyc@openldap.org>
Tue, 1 Nov 2011 18:40:04 +0000 (11:40 -0700)
servers/slapd/bconfig.c

index 8d02684c1a89079378411f725fbc597ec98c975b..eaa0c77375075b55741e44bdce8a77f188b74c3f 100644 (file)
@@ -5818,6 +5818,8 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
                        /* FALLTHRU: LDAP_MOD_REPLACE && vals */
 
                case LDAP_MOD_ADD:
+                       if ( !a )
+                               break;
                        for (i=0; ml->sml_values[i].bv_val; i++) {
                                ca->line = ml->sml_values[i].bv_val;
                                ca->valx = -1;