Sanitize usage of <ctype.h> functions. It's important that characters
[openssl.git] / apps / s_server.c
index 961077c36fcf7cc90dd60ecea0651dfeb840ebfa..92bd28b8e388febca45cf75fc091403366fe1e35 100644 (file)
@@ -1219,7 +1219,7 @@ int MAIN(int argc, char *argv[])
                        psk_key=*(++argv);
                        for (i=0; i<strlen(psk_key); i++)
                                {
-                               if (isxdigit((int)psk_key[i]))
+                               if (isxdigit((unsigned char)psk_key[i]))
                                        continue;
                                BIO_printf(bio_err,"Not a hex number '%s'\n",*argv);
                                goto bad;