diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-05-24 03:56:23 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-05-24 03:56:23 +0000 |
commit | ced5c149261eb7b0525255309e3f40c53ba71705 (patch) | |
tree | 4367102f9ac76b419c3cc2a5341ecc4cab756d94 /usr.sbin/ndp/ndp.c | |
parent | 35c2ffa34ec65e952ceee25a773e14187b3104c0 (diff) |
missing close(2). Andrey Matveev
Diffstat (limited to 'usr.sbin/ndp/ndp.c')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 766a326e295..6ff2ed4e1f5 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndp.c,v 1.34 2004/03/16 01:11:09 tedu Exp $ */ +/* $OpenBSD: ndp.c,v 1.35 2004/05/24 03:56:22 itojun Exp $ */ /* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */ /* @@ -1408,6 +1408,7 @@ pfx_flush(void) strlcpy(dummyif, "lo0", sizeof(dummyif)); /* dummy */ if (ioctl(s, SIOCSPFXFLUSH_IN6, (caddr_t)&dummyif) < 0) err(1, "ioctl(SIOCSPFXFLUSH_IN6)"); + close(s); } void |