]> diplodocus.org Git - nmh/commitdiff
Switch to the use of to_upper() instead of custom code.
authorKen Hornstein <kenh@pobox.com>
Tue, 24 Oct 2017 18:44:53 +0000 (14:44 -0400)
committerKen Hornstein <kenh@pobox.com>
Tue, 24 Oct 2017 18:44:53 +0000 (14:44 -0400)
sbr/netsec.c

index eb92dfc..a0b11d3 100644 (file)
@@ -1024,12 +1024,8 @@ netsec_set_sasl_params(netsec_context *nsc, const char *service,
      */
 
     if (mechanism) {
-       char *p;
        nsc->sasl_mech = mh_xstrdup(mechanism);
-
-       for (p = nsc->sasl_mech; *p; p++)
-           if (isascii((unsigned char) *p)) /* Leave non-ASCII lower alone. */
-               *p = toupper((unsigned char) *p);
+       to_upper(nsc->sasl_mech);
     }
 
     nsc->sasl_proto_cb = callback;