summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dispatch.c
diff options
context:
space:
mode:
authorGerhard Roth <gerhard@cvs.openbsd.org>2013-05-16 19:24:13 +0000
committerGerhard Roth <gerhard@cvs.openbsd.org>2013-05-16 19:24:13 +0000
commit4feef0c81a9728fd079125ca763dcf683534af4c (patch)
treed6e232402458a22c628274c4b2d0a2d2f28553bb /usr.sbin/dhcpd/dispatch.c
parent54dc01e5e011f2625fbdfacb41abd6bc873f9e37 (diff)
poll(2) might have slept for an arbitrary amount of time. We should
update 'cur_time' after poll(2) returns. ok otto
Diffstat (limited to 'usr.sbin/dhcpd/dispatch.c')
-rw-r--r--usr.sbin/dhcpd/dispatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index a2ec75548bf..debcae79d1c 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.30 2013/04/19 21:25:39 sthen Exp $ */
+/* $OpenBSD: dispatch.c,v 1.31 2013/05/16 19:24:12 gerhard Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -360,6 +360,7 @@ another:
case 0:
continue; /* no packets */
}
+ time(&cur_time);
for (i = 0, l = protocols; l; l = l->next) {
struct interface_info *ip = l->local;