X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fping.c;h=b619e37abf94c354af53cad79fface07371dd6b9;hb=d57e8e17bff41587242dd91df72bdda8f105eae9;hp=8a1741191433ca888100a98c3a57a0a494656921;hpb=f93ca81dd3c0e2bae0428cf71edab2a91a545a05;p=collectd.git diff --git a/src/ping.c b/src/ping.c index 8a174119..b619e37a 100644 --- 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) { - char* af = NULL; + char *af = NULL; 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 { - ERROR("ping plugin: Bad address family: %s", af); - free(af); - return 1; + WARNING("ping plugin: Ignoring invalid AddressFamily value %s", af); } free(af);