summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
Diffstat (limited to 'zhm')
-rw-r--r--zhm/queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zhm/queue.c b/zhm/queue.c
index febd36c..5a072aa 100644
--- a/zhm/queue.c
+++ b/zhm/queue.c
@@ -103,7 +103,8 @@ Code_t remove_notice_from_queue(notice, kind, repl)
*kind = entry->notice.z_kind;
*repl = entry->reply;
- timer_reset(entry->timer);
+ if (entry->timer)
+ timer_reset(entry->timer);
free(entry->packet);
LIST_DELETE(entry);
#ifdef DEBUG