[client] minor http resolve update to include URL in error output
authorMichael Rash <mbr@cipherdyne.org>
Wed, 20 Mar 2013 01:09:11 +0000 (21:09 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 20 Mar 2013 01:09:11 +0000 (21:09 -0400)
client/http_resolve_host.c

index 5903a63..01ebacd 100644 (file)
@@ -209,8 +209,9 @@ try_url(struct url *url, fko_cli_options_t *options)
     }
     else
     {
-        fprintf(stderr, "Invalid IP (%s) in HTTP response:\n\n%s\n",
-            ndx, http_response);
+        fprintf(stderr,
+            "[-] From http://%s%s\n    Invalid IP (%s) in HTTP response:\n\n%s\n",
+            url->host, url->path, ndx, http_response);
         return(-1);
     }
 }