From 74ad5210c0a03a7c467749f2a9aada6e8bba7ec1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 26 Apr 2008 15:47:06 +0000 Subject: [PATCH] cleanup --- servers/slapd/overlays/dynlist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index d28ac8714e..9b2ac459c5 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -460,9 +460,12 @@ dynlist_prepare_entry( Operation *op, SlapReply *rs, dynlist_info_t *dli ) } o.ors_scope = lud->lud_scope; - for ( dlm = dli->dli_dlm; dlm; dlm = dlm->dlm_next ) - if (dlm->dlm_mapped_ad != NULL) + for ( dlm = dli->dli_dlm; dlm; dlm = dlm->dlm_next ) { + if ( dlm->dlm_mapped_ad != NULL ) { break; + } + } + if ( dli->dli_dlm && !dlm ) { /* if ( lud->lud_attrs != NULL ), * the URL should be ignored */ -- 2.39.5