diff options
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r-- | usr.sbin/ospf6d/control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/control.c b/usr.sbin/ospf6d/control.c index a6e2107f3d6..4bf2c4be8e2 100644 --- a/usr.sbin/ospf6d/control.c +++ b/usr.sbin/ospf6d/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.17 2012/04/10 07:56:50 deraadt Exp $ */ +/* $OpenBSD: control.c,v 1.18 2012/04/11 08:33:53 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -103,8 +103,7 @@ void control_cleanup(void) { event_del(&control_state.ev); - if (evtimer_pending(&control_state.evt, NULL)) - event_del(&control_state.evt); + event_del(&control_state.evt); unlink(OSPF6D_SOCKET); } |