diff options
author | 2004-05-24 03:56:22 +0000 | |
---|---|---|
committer | 2004-05-24 03:56:22 +0000 | |
commit | fa4f79a69ad622a6ab474870505de75bc9e8b914 (patch) | |
tree | 23af9368774629d49633e9f4e7c4664ad88b3b3f | |
parent | No way: This breaks nearly every architecture (diff) | |
download | wireguard-openbsd-fa4f79a69ad622a6ab474870505de75bc9e8b914.tar.xz wireguard-openbsd-fa4f79a69ad622a6ab474870505de75bc9e8b914.zip |
missing close(2). Andrey Matveev
-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 |