From 190aa953059d589c01d7d0e0204ba939ef1ef07d Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 19 May 1998 21:56:13 +0000 Subject: Close forgotten descriptor. Submitted by: Ruslan Ermilov --- usr.sbin/ppp/os.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c index 6818680a9ad..d7c6b1fadab 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.8 1998/01/21 02:13:39 brian Exp $ + * $Id: os.c,v 1.9 1998/05/19 21:56:12 brian Exp $ * */ #include @@ -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; } -- cgit v1.2.3