]> diplodocus.org Git - nmh/commitdiff
Explain isascii() test more in netsec_set_sasl_params().
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 20:14:24 +0000 (21:14 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 20:14:24 +0000 (21:14 +0100)
It stops non-ASCII lower in the SASL mechanism being uppered, just in
case there is some.

sbr/netsec.c

index 8a0bba6..8259704 100644 (file)
@@ -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);
     }