diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-04-29 20:18:26 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-04-29 20:18:26 -0600 |
commit | 653eeaa2ba5d7a539faf2e4fda32820d987a7c3a (patch) | |
tree | af22be41b5d064c80f590103623c0ed6eb3335c0 /imap/src | |
parent | c8812ee61f137936edfff613f8c475e69326e6a7 (diff) | |
download | alpine-653eeaa2ba5d7a539faf2e4fda32820d987a7c3a.tar.xz |
* Crash in the ntlm authenticator when no domain was specified in the
username. Reported and fixed by Anders Skargren.
Diffstat (limited to 'imap/src')
-rw-r--r-- | imap/src/c-client/auth_ntl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |