From f5644ba244b0db009e07eb6a94cae8c7d9846a79 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 26 Aug 2021 23:53:14 +0200 Subject: POP3: make CAPA parser caseblind. --- pop3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 430ff8d7..4dfbd3b1 100644 --- a/pop3.c +++ b/pop3.c @@ -222,6 +222,7 @@ static int capa_probe(int sock) if (ok == PS_SUCCESS) { char buffer[64]; + char *cp; /* determine what authentication methods we have available */ while ((ok = gen_recv(sock, buffer, sizeof(buffer))) == 0) @@ -229,6 +230,8 @@ static int capa_probe(int sock) if (DOTLINE(buffer)) break; + for (cp = buffer; *cp; cp++) *cp = toupper((unsigned char)*cp); + #ifdef SSL_ENABLE if (strstr(buffer, "STLS")) has_stls = TRUE; -- cgit v1.2.3