diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-24 06:20:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-24 06:20:47 +0000 |
commit | df09214c6236c826bf1d44885fb4c42e77a23808 (patch) | |
tree | 39c2947652dcddbc0efbbde3d36a0a1059f388f7 | |
parent | 12acab9b86196ca6ed7d084269c8484820686713 (diff) |
strcasecmp() is banned from our code, should be strequal() everywhere!
Tim Costello reported bug report #454858.
-rw-r--r-- | lib/ssluse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 4eb94c790..eb7e485ac 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -407,7 +407,7 @@ Curl_SSLConnect(struct connectdata *conn) return CURLE_SSL_PEER_CERTIFICATE; } - if (strcasecmp(peer_CN, conn->hostname) != 0) { + if (!strequal(peer_CN, conn->hostname)) { if (data->ssl.verifyhost > 1) { failf(data, "SSL: certificate subject name '%s' does not match target host name '%s'", peer_CN, conn->hostname); |