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;
} 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);