From: Howard Chu Date: Tue, 1 Nov 2011 18:40:04 +0000 (-0700) Subject: ITS#7065 fix cn=config modify replace/delete crash X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ddaea1cf7311bad9f235daa65342ecaa1705653c;p=openldap ITS#7065 fix cn=config modify replace/delete crash --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 8d02684c1a..eaa0c77375 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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;