diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -253,8 +253,10 @@ check_host_in_hostfile_by_key_or_type(const char *filename, if (key == NULL) { /* we found a key of the requested type */ - if (found->type == keytype) + if (found->type == keytype) { + fclose(f); return HOST_FOUND; + } continue; } |