Fix crash caused by wildcards in NamedServeFilter source parameter

Use the formated IP address instead of the one with wildcard symbols.
This commit is contained in:
Marko
2018-08-15 22:01:38 +03:00
parent 4a637b024d
commit 421ecdd86b

View File

@ -805,7 +805,7 @@ SourceHost* RegexHintFilter::set_source_address(const char* input_host)
struct addrinfo *ai = NULL, hint = {};
hint.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;
int rc = getaddrinfo(input_host, NULL, &hint, &ai);
int rc = getaddrinfo(format_host, NULL, &hint, &ai);
/* fill IPv4 data struct */
if (rc == 0)