From ced5c149261eb7b0525255309e3f40c53ba71705 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 24 May 2004 03:56:23 +0000 Subject: missing close(2). Andrey Matveev --- usr.sbin/ndp/ndp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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 -- cgit v1.2.3