From 43d0d989efa45237d53edf551805c2a045173a99 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 29 Sep 2008 17:38:12 +0000 Subject: [PATCH] allow intermixing of mapped/not mapped attrs (spotted while invstigating ITS#5717) --- servers/slapd/overlays/dynlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index 29b1d5bc13..647a2ca6c3 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -306,7 +306,9 @@ dynlist_sc_update( Operation *op, SlapReply *rs ) ad = a->a_desc; for ( dlm = dlc->dlc_dli->dli_dlm; dlm; dlm = dlm->dlm_next ) { if ( dlm->dlm_member_ad == a->a_desc ) { - ad = dlm->dlm_mapped_ad; + if ( dlm->dlm_mapped_ad ) { + ad = dlm->dlm_mapped_ad; + } break; } } -- 2.39.5