diff options
author | brian <brian@FreeBSD.org> | 1998-05-19 21:49:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-05-19 21:49:54 +0000 |
commit | a3d6984f734f5eb36f7c3913947b77d09dfd325f (patch) | |
tree | d86eccc2572c2ca723a3cbc15429498aa63cec4c /usr.sbin | |
parent | 0cc808ba0d80f670fdbfdad8596b352a02661706 (diff) | |
download | FreeBSD-src-a3d6984f734f5eb36f7c3913947b77d09dfd325f.zip FreeBSD-src-a3d6984f734f5eb36f7c3913947b77d09dfd325f.tar.gz |
Close forgotten descriptor.
PR: 6690
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/os.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c index 5cdb70c..aee7f75 100644 --- a/usr.sbin/ppp/os.c +++ b/usr.sbin/ppp/os.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: os.c,v 1.41 1998/01/19 02:59:33 brian Exp $ + * $Id: os.c,v 1.42 1998/01/21 02:15:23 brian Exp $ * */ #include <sys/param.h> @@ -183,6 +183,7 @@ CleanInterface(const char *name) LogPrintf(LogERROR, "tun_configure: Can't get dst for %s on %s !\n", inet_ntoa(((struct sockaddr_in *)&ifra.ifra_addr)->sin_addr), name); + close(s); return 0; } ifra.ifra_broadaddr = ifrq.ifr_dstaddr; @@ -191,9 +192,11 @@ CleanInterface(const char *name) LogPrintf(LogERROR, "tun_configure: Can't delete %s address on %s !\n", inet_ntoa(((struct sockaddr_in *)&ifra.ifra_addr)->sin_addr), name); + close(s); return 0; } } + close(s); return 1; } |