mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 07:29:59 +00:00
Don't print debug messages if not debugging
This was Red Hat bug #1000770, patched downstream in RHBA-2014-0683 https://bugzilla.redhat.com/show_bug.cgi?id=1000770
This commit is contained in:
parent
d7d145d940
commit
9656d30661
1 changed files with 6 additions and 3 deletions
|
|
@ -417,7 +417,8 @@ static int do_proxy_http(void)
|
|||
goto bail;
|
||||
}
|
||||
code = http_parse_status_line_code(status_line);
|
||||
logdebug("Proxy returned status code %d.\n", code);
|
||||
if (o.debug)
|
||||
logdebug("Proxy returned status code %d.\n", code);
|
||||
free(status_line);
|
||||
status_line = NULL;
|
||||
if (http_read_header(&sockbuf, &header) != 0) {
|
||||
|
|
@ -458,7 +459,8 @@ static int do_proxy_http(void)
|
|||
http_challenge_free(&challenge);
|
||||
goto bail;
|
||||
}
|
||||
logdebug("Reconnection header:\n%s", request);
|
||||
if (o.debug)
|
||||
logdebug("Reconnection header:\n%s", request);
|
||||
if (send(sd, request, n, 0) < 0) {
|
||||
loguser("Error sending proxy request: %s.\n", socket_strerror(socket_errno()));
|
||||
free(request);
|
||||
|
|
@ -475,7 +477,8 @@ static int do_proxy_http(void)
|
|||
goto bail;
|
||||
}
|
||||
code = http_parse_status_line_code(status_line);
|
||||
logdebug("Proxy returned status code %d.\n", code);
|
||||
if (o.debug)
|
||||
logdebug("Proxy returned status code %d.\n", code);
|
||||
free(status_line);
|
||||
status_line = NULL;
|
||||
if (http_read_header(&sockbuf, &header) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue