summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-12-05 09:03:31 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-12-05 09:03:31 +1100
commit094f1e99348bdcea46f62f5c0f0e9944ed698b4e (patch)
tree07ca9b09abc61cd74683646a2d513e00887c8db1 /hostfile.c
parentaf1f90925494deba97a4b877798cf250f7dc75cf (diff)
- djm@cvs.openbsd.org 2010/12/04 13:31:37
[hostfile.c] fix fd leak; spotted and ok dtucker
Diffstat (limited to 'hostfile.c')
-rw-r--r--hostfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostfile.c b/hostfile.c
index 9145529cb..b6f924b23 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hostfile.c,v 1.49 2010/11/29 23:45:51 djm Exp $ */ 1/* $OpenBSD: hostfile.c,v 1.50 2010/12/04 13:31:37 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -317,6 +317,7 @@ load_hostkeys(struct hostkeys *hostkeys, const char *host, const char *path)
317 num_loaded++; 317 num_loaded++;
318 } 318 }
319 debug3("%s: loaded %lu keys", __func__, num_loaded); 319 debug3("%s: loaded %lu keys", __func__, num_loaded);
320 fclose(f);
320 return; 321 return;
321} 322}
322 323