diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hostfile.c b/hostfile.c index 77aa8a899..d532bd6ad 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: hostfile.c,v 1.25 2001/04/06 22:12:47 stevesk Exp $"); | 39 | RCSID("$OpenBSD: hostfile.c,v 1.26 2001/04/12 19:15:24 markus Exp $"); |
40 | 40 | ||
41 | #include "packet.h" | 41 | #include "packet.h" |
42 | #include "match.h" | 42 | #include "match.h" |
@@ -115,6 +115,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, | |||
115 | char *cp, *cp2; | 115 | char *cp, *cp2; |
116 | HostStatus end_return; | 116 | HostStatus end_return; |
117 | 117 | ||
118 | debug3("check_host_in_hostfile: filename %s", filename); | ||
118 | if (key == NULL) | 119 | if (key == NULL) |
119 | fatal("no key to look up"); | 120 | fatal("no key to look up"); |
120 | /* Open the file containing the list of known hosts. */ | 121 | /* Open the file containing the list of known hosts. */ |
@@ -166,6 +167,7 @@ check_host_in_hostfile(const char *filename, const char *host, Key *key, | |||
166 | /* Check if the current key is the same as the given key. */ | 167 | /* Check if the current key is the same as the given key. */ |
167 | if (key_equal(key, found)) { | 168 | if (key_equal(key, found)) { |
168 | /* Ok, they match. */ | 169 | /* Ok, they match. */ |
170 | debug3("check_host_in_hostfile: match line %d", linenum); | ||
169 | fclose(f); | 171 | fclose(f); |
170 | return HOST_OK; | 172 | return HOST_OK; |
171 | } | 173 | } |