From 15f68eeb7ea2f50a4a08ed9bf361567ba879fde6 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sun, 20 Dec 2020 12:17:56 +1300 Subject: [PATCH 1/2] tldap: avoid infinite loop when filter contains "\)" BUG: https://bugzilla.samba.org/show_bug.cgi?id=14600 Signed-off-by: Douglas Bagnall --- source3/lib/tldap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index e008b04e5e6..082a3e0b481 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -1238,6 +1238,7 @@ static char *tldap_get_val(TALLOC_CTX *memctx, while (*s) { s = strchr(s, ')'); if (s && (*(s - 1) == '\\')) { + s++; continue; } break; -- 2.20.1