From 653eeaa2ba5d7a539faf2e4fda32820d987a7c3a Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 29 Apr 2021 20:18:26 -0600 Subject: * Crash in the ntlm authenticator when no domain was specified in the username. Reported and fixed by Anders Skargren. --- imap/src/c-client/auth_ntl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap') diff --git a/imap/src/c-client/auth_ntl.c b/imap/src/c-client/auth_ntl.c index 7511303a..9f885469 100644 --- a/imap/src/c-client/auth_ntl.c +++ b/imap/src/c-client/auth_ntl.c @@ -1,5 +1,5 @@ /* ======================================================================== - * Copyright 2018-2020 Eduardo Chappa + * Copyright 2018-2021 Eduardo Chappa * Copyright 2015 Imagination Technologies * Copyright 1988-2008 University of Washington * @@ -78,7 +78,7 @@ long auth_ntlm_client (authchallenge_t challenger, authrespond_t responder,char /* will override the domain requested with */ /* one returned by the challenge message */ sep = strchr (user, '\\'); - if (*sep) { + if (sep) { dlen = sep - user; ulen = strlen (sep + 1); memcpy (ubuf, sep + 1, ulen); -- cgit v1.2.3-70-g09d2