summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-07-03 22:09:02 +0000
committerpjd <pjd@FreeBSD.org>2013-07-03 22:09:02 +0000
commitf92ee0c897d1cd0cdbb0c8e2cb5f63869f1a0946 (patch)
treed6bbeef007e1c4d147b64ed699ceb004a73f957a /sbin/dhclient
parentc7760760050ab0a6f9f5d231505dd6df281090a4 (diff)
downloadFreeBSD-src-f92ee0c897d1cd0cdbb0c8e2cb5f63869f1a0946.zip
FreeBSD-src-f92ee0c897d1cd0cdbb0c8e2cb5f63869f1a0946.tar.gz
MFp4 @229480:
Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 0380020..43e0c16 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -476,6 +476,8 @@ main(int argc, char *argv[])
if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) != -1)
add_protocol("AF_ROUTE", routefd, routehandler, ifi);
+ if (shutdown(routefd, SHUT_WR) < 0)
+ error("can't shutdown route socket: %m");
/* set up the interface */
discover_interfaces(ifi);
OpenPOWER on IntegriCloud