|
|
62a8fc |
diff -up nmap-6.40/ncat/ncat_connect.c.logdebug nmap-6.40/ncat/ncat_connect.c
|
|
|
62a8fc |
--- nmap-6.40/ncat/ncat_connect.c.logdebug 2013-08-08 16:49:23.541312607 +0200
|
|
|
62a8fc |
+++ nmap-6.40/ncat/ncat_connect.c 2013-08-08 16:50:07.311943322 +0200
|
|
|
62a8fc |
@@ -420,7 +420,8 @@ static int do_proxy_http(void)
|
|
|
62a8fc |
goto bail;
|
|
|
62a8fc |
}
|
|
|
62a8fc |
code = http_parse_status_line_code(status_line);
|
|
|
62a8fc |
- logdebug("Proxy returned status code %d.\n", code);
|
|
|
62a8fc |
+ if (o.debug)
|
|
|
62a8fc |
+ logdebug("Proxy returned status code %d.\n", code);
|
|
|
62a8fc |
free(status_line);
|
|
|
62a8fc |
status_line = NULL;
|
|
|
62a8fc |
if (http_read_header(&sockbuf, &header) != 0) {
|
|
|
62a8fc |
@@ -461,7 +462,8 @@ static int do_proxy_http(void)
|
|
|
62a8fc |
http_challenge_free(&challenge);
|
|
|
62a8fc |
goto bail;
|
|
|
62a8fc |
}
|
|
|
62a8fc |
- logdebug("Reconnection header:\n%s", request);
|
|
|
62a8fc |
+ if (o.debug)
|
|
|
62a8fc |
+ logdebug("Reconnection header:\n%s", request);
|
|
|
62a8fc |
if (send(sd, request, n, 0) < 0) {
|
|
|
62a8fc |
loguser("Error sending proxy request: %s.\n", socket_strerror(socket_errno()));
|
|
|
62a8fc |
free(request);
|
|
|
62a8fc |
@@ -478,7 +480,8 @@ static int do_proxy_http(void)
|
|
|
62a8fc |
goto bail;
|
|
|
62a8fc |
}
|
|
|
62a8fc |
code = http_parse_status_line_code(status_line);
|
|
|
62a8fc |
- logdebug("Proxy returned status code %d.\n", code);
|
|
|
62a8fc |
+ if (o.debug)
|
|
|
62a8fc |
+ logdebug("Proxy returned status code %d.\n", code);
|
|
|
62a8fc |
free(status_line);
|
|
|
62a8fc |
status_line = NULL;
|
|
|
62a8fc |
if (http_read_header(&sockbuf, &header) != 0) {
|