summaryrefslogtreecommitdiff
path: root/lib/hostcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hostcheck.c')
-rw-r--r--lib/hostcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostcheck.c b/lib/hostcheck.c
index cf267a765..cd45bd07e 100644
--- a/lib/hostcheck.c
+++ b/lib/hostcheck.c
@@ -89,7 +89,7 @@ static int hostmatch(char *hostname, char *pattern)
match. */
wildcard_enabled = 1;
pattern_label_end = strchr(pattern, '.');
- if(!pattern_label_end || strchr(pattern_label_end + 1, '.') == NULL ||
+ if(!pattern_label_end || !strchr(pattern_label_end + 1, '.') ||
pattern_wildcard > pattern_label_end ||
strncasecompare(pattern, "xn--", 4)) {
wildcard_enabled = 0;