Fix subnet targets

This commit is contained in:
Přemysl Eric Janouch 2014-09-26 20:52:24 +02:00
parent 31bb98c995
commit 3ecf06ba46
1 changed files with 1 additions and 1 deletions

View File

@ -1773,7 +1773,7 @@ add_target (struct app_context *ctx, const char *target)
struct addrinfo hints = { .ai_family = AF_INET };
struct addrinfo *result;
int err = getaddrinfo (target, NULL, &hints, &result);
int err = getaddrinfo (host, NULL, &hints, &result);
if (err)
{
print_error ("cannot resolve `%s': %s", host, gai_strerror (err));