Check if the list argument to ListContainsDomain() is NULL. Otherwise
the call to wcsstr() will bail out.
Reported-by: Marc Heuse <marc@srlabs.de>
Reported-by: stephan@srlabs.de
Change-Id: Icd7c7b08e317aefd91a60bfc62e92cd8707b6fac
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1393
Message-Id: <
20251123120029.19736-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34611.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
ListContainsDomain(PCWSTR list, PCWSTR domain, size_t len)
{
PCWSTR match = list;
- while (TRUE)
+ while (match)
{
match = wcsstr(match, domain);
if (!match)