From 2731ff0c23ae29414d12658f31d9d3bde6b5c374 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 17 Dec 2018 13:44:25 -0800 Subject: [PATCH] ITS#5927 additional fix Fix 2ee43073e938d1a1091813faed099b9b2298be73 to recognize range tags --- servers/slapd/ad.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 3fd62fa7f9..4237453fb9 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -219,6 +219,7 @@ int slap_bv2ad( optn = bv->bv_val + bv->bv_len; for( opt=options; opt != NULL; opt=next ) { + Attr_option *aopt; int optlen; opt++; next = strchrlen( opt, optn, ';', &optlen ); @@ -245,11 +246,11 @@ int slap_bv2ad( desc.ad_flags |= SLAP_DESC_BINARY; continue; - } else if ( ad_find_option_definition( opt, optlen ) ) { + } else if (( aopt = ad_find_option_definition( opt, optlen )) ) { int i; if( opt[optlen-1] == '-' || - ( opt[optlen-1] == '=' && msad_range_hack )) { + ( aopt->name.bv_val[aopt->name.bv_len-1] == '=' && msad_range_hack )) { desc.ad_flags |= SLAP_DESC_TAG_RANGE; }