aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-26 20:52:24 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-26 21:32:16 +0200
commit3ecf06ba468792c54bb8fd4e0804430ba0ab9cfd (patch)
treedd0905920850217a12059dbfd1535adc9cae2293
parent31bb98c995e84f1d2174d9e68e95145bc78a5eba (diff)
downloadponymap-3ecf06ba468792c54bb8fd4e0804430ba0ab9cfd.tar.gz
ponymap-3ecf06ba468792c54bb8fd4e0804430ba0ab9cfd.tar.xz
ponymap-3ecf06ba468792c54bb8fd4e0804430ba0ab9cfd.zip
Fix subnet targets
-rw-r--r--ponymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymap.c b/ponymap.c
index e11c559..6ebf10e 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -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));