Make sure to use unsigned char for is*() functions
[oweals/openssl.git] / apps / s_server.c
index 489924ced69147ccd68bfc38e8785b2607b15623..38030364bd9c8ec2746a930c16f10805aac8ca41 100644 (file)
@@ -1380,7 +1380,7 @@ int s_server_main(int argc, char *argv[])
         case OPT_PSK:
 #ifndef OPENSSL_NO_PSK
             for (p = psk_key = opt_arg(); *p; p++) {
-                if (isxdigit(*p))
+                if (isxdigit(_UC(*p)))
                     continue;
                 BIO_printf(bio_err, "Not a hex number '%s'\n", *argv);
                 goto end;