diff options
author | 2013-05-16 19:24:12 +0000 | |
---|---|---|
committer | 2013-05-16 19:24:12 +0000 | |
commit | 4eb66b4048ac649cc4de5cc5f3b3d057455a113d (patch) | |
tree | 42854de291daf9dc7360fddeab623eb3e1733b82 | |
parent | Implement a mechanism to establish interrupt handlers that don't grab the (diff) | |
download | wireguard-openbsd-4eb66b4048ac649cc4de5cc5f3b3d057455a113d.tar.xz wireguard-openbsd-4eb66b4048ac649cc4de5cc5f3b3d057455a113d.zip |
poll(2) might have slept for an arbitrary amount of time. We should
update 'cur_time' after poll(2) returns.
ok otto
-rw-r--r-- | usr.sbin/dhcpd/dispatch.c | 3 |
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; |