summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7a5d1d)
raw | patch | inline | side by side (parent: b7a5d1d)
author | Florian Forster <octo@noris.net> | |
Thu, 27 Sep 2007 16:12:44 +0000 (16:12 +0000) | ||
committer | Florian Forster <octo@noris.net> | |
Thu, 27 Sep 2007 16:14:50 +0000 (16:14 +0000) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 5cc1b2d9b9acaaf599f70176f6143a075f8efd8c..3c8a4fcb88299dea02357f76c24377e355f20f83 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
int i;
if (host_head == NULL)
+ {
+ NOTICE ("snmp plugin: No host has been defined.");
return (-1);
+ }
call_snmp_init_once ();
threads = (pthread_t *) malloc (threads_num * sizeof (pthread_t));
if (threads == NULL)
+ {
+ ERROR ("snmp plugin: malloc failed.");
return (-1);
+ }
memset (threads, '\0', threads_num * sizeof (pthread_t));
for (i = 0; i < threads_num; i++)