From 131203ec5d6f2c36163f21a44d884c78a2dd2e69 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 3 Nov 2016 15:50:26 -0700 Subject: [PATCH] More for multival attrs check for enumerated delete that deletes all values --- servers/slapd/back-mdb/modify.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; -- 2.39.5