From: Quanah Gibson-Mount Date: Thu, 3 Nov 2016 22:50:26 +0000 (-0700) Subject: More for multival attrs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=131203ec5d6f2c36163f21a44d884c78a2dd2e69;p=openldap More for multival attrs check for enumerated delete that deletes all values --- diff --git a/servers/slapd/back-mdb/modify.c b/servers/slapd/back-mdb/modify.c index fcabb2acfe..02c5695267 100644 --- a/servers/slapd/back-mdb/modify.c +++ b/servers/slapd/back-mdb/modify.c @@ -232,11 +232,13 @@ do_del: } if ( mod->sm_numvals ) { anew = attr_find( e->e_attrs, mod->sm_desc ); - if ( anew->a_numvals < mdb->mi_multi_lo ) { - anew->a_flags ^= SLAP_ATTR_BIG_MULTI; - anew = NULL; - } else { - anew = (Attribute *)mod; + if ( anew ) { + if ( anew->a_numvals < mdb->mi_multi_lo ) { + anew->a_flags ^= SLAP_ATTR_BIG_MULTI; + anew = NULL; + } else { + anew = (Attribute *)mod; + } } } else { anew = NULL;