diff --git a/apps/s_server.c b/apps/s_server.c index 3ded4f88cc..28937bd80f 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -470,7 +470,7 @@ static int ssl_servername_cb(SSL *s, int *ad, void *arg) BIO_printf(p->biodebug, "Hostname in TLS extension: \""); while ((uc = *cp++) != 0) BIO_printf(p->biodebug, - isascii(uc) && isprint(uc) ? "%c" : "\\x%02x", uc); + (((uc) & ~127) == 0) && isprint(uc) ? "%c" : "\\x%02x", uc); BIO_printf(p->biodebug, "\"\n"); }