From 12cecf3365e054bea3752bab57c0b1ecbf4f4dbb Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 21 Oct 2016 21:14:24 +0100 Subject: [PATCH] Explain isascii() test more in netsec_set_sasl_params(). It stops non-ASCII lower in the SASL mechanism being uppered, just in case there is some. --- sbr/netsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/netsec.c b/sbr/netsec.c index 8a0bba66..8259704e 100644 --- a/sbr/netsec.c +++ b/sbr/netsec.c @@ -1023,7 +1023,7 @@ netsec_set_sasl_params(netsec_context *nsc, const char *hostname, nsc->sasl_mech = mh_xstrdup(mechanism); for (p = nsc->sasl_mech; *p; p++) - if (isascii((unsigned char) *p)) /* Just in case */ + if (isascii((unsigned char) *p)) /* Leave non-ASCII lower alone. */ *p = toupper((unsigned char) *p); } -- 2.56.0