diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hostfile.c b/hostfile.c index bac285da5..f58e1d67d 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$OpenBSD: hostfile.c,v 1.18 2000/04/29 18:11:52 markus Exp $"); | 17 | RCSID("$OpenBSD: hostfile.c,v 1.19 2000/06/06 19:32:13 markus Exp $"); |
18 | 18 | ||
19 | #include "packet.h" | 19 | #include "packet.h" |
20 | #include "match.h" | 20 | #include "match.h" |
@@ -129,7 +129,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, Key *fo | |||
129 | ; | 129 | ; |
130 | 130 | ||
131 | /* Check if the host name matches. */ | 131 | /* Check if the host name matches. */ |
132 | if (!match_hostname(host, cp, (unsigned int) (cp2 - cp))) | 132 | if (match_hostname(host, cp, (unsigned int) (cp2 - cp)) != 1) |
133 | continue; | 133 | continue; |
134 | 134 | ||
135 | /* Got a match. Skip host name. */ | 135 | /* Got a match. Skip host name. */ |