aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 39bf2c2c..59b0112e 100644
--- a/socket.c
+++ b/socket.c
@@ -600,7 +600,7 @@ SSL *SSLGetContext( int sock )
* The only place where a wildcard is allowed is in the leftmost
* position of p1. */
static int name_match(const char *p1, const char *p2) {
- if (p1[0] == '*') {
+ if (p1[0] == '*' && p1[1] == '.') {
size_t l1, l2;
++p1;