]> andersk Git - openssh.git/blobdiff - hostfile.c
- stevesk@cvs.openbsd.org 2006/07/03 17:59:32
[openssh.git] / hostfile.c
index 85fbcf7ce2a5a2c81a947d506b736263b2dd204d..39ff197a7fe47a4cdc49129edb7578e68a1ed737 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenBSD: hostfile.c,v 1.40 2006/03/25 13:17:02 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -253,8 +254,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;
                }
 
This page took 0.040177 seconds and 4 git commands to generate.