summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-05-05 11:40:47 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-05-05 11:40:47 +0000
commit91147773b525354a1277f37184199019987accb7 (patch)
tree89a25bc6f960327efa2fe0985b513d3a96ef4a39 /sbin/dhclient
parent2f004f6243d9705ee688aec7c9323a5740c01cd7 (diff)
routefd needs to be opened slightly later
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 694c1dee8d0..9bef3ecb843 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.43 2004/05/05 11:19:07 henning Exp $ */
+/* $OpenBSD: dhclient.c,v 1.44 2004/05/05 11:40:46 henning Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -297,14 +297,14 @@ main(int argc, char *argv[])
close(pipe_fd[0]);
privfd = pipe_fd[1];
- if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) != -1)
- add_protocol("AF_ROUTE", routefd, routehandler, ifi);
-
priv_script_init("PREINIT", NULL);
if (ifi->client->alias)
priv_script_write_params("alias_", ifi->client->alias);
priv_script_go();
+ if ((routefd = socket(PF_ROUTE, SOCK_RAW, 0)) != -1)
+ add_protocol("AF_ROUTE", routefd, routehandler, ifi);
+
/* set up the interface */
discover_interfaces(ifi);