From: Pierangelo Masarati Date: Sat, 26 Apr 2008 15:47:06 +0000 (+0000) Subject: cleanup X-Git-Tag: LOCKER_IDS~200 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74ad5210c0a03a7c467749f2a9aada6e8bba7ec1;p=openldap cleanup --- 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 */