projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ping plugin: warn on invalid AddressFamily value instead of error
[collectd.git]
/
src
/
ping.c
diff --git
a/src/ping.c
b/src/ping.c
index
8a17411
..
b619e37
100644
(file)
--- a/
src/ping.c
+++ b/
src/ping.c
@@
-476,7
+476,7
@@
static int ping_config(const char *key, const char *value) /* {{{ */
hl->next = hostlist_head;
hostlist_head = hl;
} else if (strcasecmp(key, "AddressFamily") == 0) {
hl->next = hostlist_head;
hostlist_head = hl;
} else if (strcasecmp(key, "AddressFamily") == 0) {
- char
*
af = NULL;
+ char
*
af = NULL;
int status = config_set_string(key, &af, value);
if (status != 0)
return status;
int status = config_set_string(key, &af, value);
if (status != 0)
return status;
@@
-488,9
+488,7
@@
static int ping_config(const char *key, const char *value) /* {{{ */
} else if (strncmp(af, "ipv6", 4) == 0) {
ping_af = AF_INET6;
} else {
} else if (strncmp(af, "ipv6", 4) == 0) {
ping_af = AF_INET6;
} else {
- ERROR("ping plugin: Bad address family: %s", af);
- free(af);
- return 1;
+ WARNING("ping plugin: Ignoring invalid AddressFamily value %s", af);
}
free(af);
}
free(af);