summaryrefslogtreecommitdiff
path: root/zhm/zhm_client.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-09-23 01:58:26 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-09-23 01:58:26 +0000
commit14b8946f493d3ac02c4468c57fd411b31c4c0894 (patch)
tree090afd2995bac6a250f6d5a0169743f3cc566227 /zhm/zhm_client.c
parent00952bc3a6ffb87a25d5c492c62b3a6680841286 (diff)
From mhpower: avoid possible buffer overflows.
Diffstat (limited to 'zhm/zhm_client.c')
-rw-r--r--zhm/zhm_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zhm/zhm_client.c b/zhm/zhm_client.c
index ff7d3ea..d044c60 100644
--- a/zhm/zhm_client.c
+++ b/zhm/zhm_client.c
@@ -76,7 +76,8 @@ void transmission_tower(notice, packet, pak_len)
com_err("hm", ret, "while sending raw notice");
}
}
- add_notice_to_queue(notice, packet, &gsin, pak_len);
+ if (add_notice_to_queue(notice, packet, &gsin, pak_len) != ZERR_NONE)
+ syslog(LOG_INFO, "Hey! Insufficient memory to add notice to queue!");
}
Code_t