Use case insensitive compare for servername.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 14 Jul 2014 22:59:13 +0000 (23:59 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 14 Jul 2014 22:59:13 +0000 (23:59 +0100)
PR#3445

apps/s_server.c

index 239597e..9d1a1fa 100644 (file)
@@ -740,7 +740,7 @@ static int MS_CALLBACK ssl_servername_cb(SSL *s, int *ad, void *arg)
        
        if (servername)
                {
-               if (strcmp(servername,p->servername)) 
+               if (strcasecmp(servername,p->servername)) 
                        return p->extension_error;
                if (ctx2)
                        {