summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-11 08:34:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-11 08:34:42 +0000
commit92187c9906193f3542167f06c15457ada274eb7c (patch)
treeefe83cee7a22c31a321a7c4b6c4deec8f6d7d046 /usr.sbin/snmpd
parent9ba7887131b0a6530e49cafc7bb341fd45aa6edc (diff)
delete excessive evtimer_pending; ok claudio
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r--usr.sbin/snmpd/control.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/control.c b/usr.sbin/snmpd/control.c
index 88cdc7c0076..5352e3a98eb 100644
--- a/usr.sbin/snmpd/control.c
+++ b/usr.sbin/snmpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.14 2012/04/08 02:57:40 deraadt Exp $ */
+/* $OpenBSD: control.c,v 1.15 2012/04/11 08:33:53 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -127,8 +127,7 @@ control_cleanup(struct control_sock *cs)
if (cs->cs_name == NULL)
return;
event_del(&cs->cs_ev);
- if (evtimer_pending(&cs->cs_evt, NULL))
- event_del(&cs->cs_evt);
+ event_del(&cs->cs_evt);
(void)unlink(cs->cs_name);
}