1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

dns wildcards: fix BUG 13536

The current position in the dns name was not advanced past the '.'
character

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 20 04:40:31 CEST 2018 on sn-devel-144

(cherry picked from commit cef1b31cd1f33074e8ab6de52aa0fb74e9b57a9f)
This commit is contained in:
Gary Lockyer 2018-07-18 15:33:26 +12:00 committed by Karolin Seeger
parent 14963928ff
commit a6dab26aa8
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +0,0 @@
# https://bugzilla.samba.org/show_bug.cgi?id=13536
#
^samba.*.TestWildCardQueries.test_one_a_query_match_wildcard_l2_2_labels
^samba.*.TestWildCardQueries.test_one_a_query_match_wildcard_2_labels

View File

@ -380,6 +380,7 @@ static struct ldb_parse_tree *build_wildcard_query(
wildcard_query->u.list.elements[l] = el;
/* skip to the start of the next label */
x++;
for (;x < name->length && name->data[x] != '.'; x++);
}