summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1999-10-20 12:44:11 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1999-10-20 12:44:11 +0000
commit4e2a96898c62bd2f2e2a12042678f290da44bf13 (patch)
treec42934878c3b8e65f81d202ba1bf7f4af2a8359c /zhm
parent09f178a37124b583aab8c88f30d13f8e6d1c2fef (diff)
Don't reset a null timer. It's bad.
(When removing a packet from the queue.)
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