diff options
author | 2010-01-09 02:37:32 +0000 | |
---|---|---|
committer | 2010-01-09 02:37:32 +0000 | |
commit | bfa35f97c39adcee83eb3ac25b78714e2178acb9 (patch) | |
tree | c243efed397199b0d389bbf6854ab002b9f52747 | |
parent | tweak language (diff) | |
download | wireguard-openbsd-bfa35f97c39adcee83eb3ac25b78714e2178acb9.tar.xz wireguard-openbsd-bfa35f97c39adcee83eb3ac25b78714e2178acb9.zip |
Plug fd leak in lg_incl(). Fix by Igor Zinovik, OK beck@
-rw-r--r-- | usr.bin/bgplg/bgplg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/bgplg/bgplg.c b/usr.bin/bgplg/bgplg.c index db8cae0ca4d..3d4d687896c 100644 --- a/usr.bin/bgplg/bgplg.c +++ b/usr.bin/bgplg/bgplg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgplg.c,v 1.7 2007/10/10 13:23:40 claudio Exp $ */ +/* $OpenBSD: bgplg.c,v 1.8 2010/01/09 02:37:32 claudio Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net> @@ -235,6 +235,7 @@ lg_incl(const char *file) fwrite(buf, len, 1, stdout); } while(len == BUFSIZ); + close(fd); return (0); } |