mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Applied patch:
o Fixed a log_write call and a pfatal call to use a syntax which is safer from format strings bugs. This allows Nmap to build with the gcc -Wformat -Werror=format-security options. [Guillaume Rousse]
This commit is contained in:
@@ -3783,7 +3783,7 @@ static bool do_one_select_round(UltraScanInfo *USI, struct timeval *stime) {
|
||||
case ENETRESET:
|
||||
case ECONNABORTED:
|
||||
Snprintf(buf, sizeof(buf), "Strange SO_ERROR from connection to %s (%d - '%s') -- bailing scan", host->target->targetipstr(), optval, strerror(optval) );
|
||||
pfatal(buf);
|
||||
pfatal("%s", buf);
|
||||
break;
|
||||
default:
|
||||
Snprintf(buf, sizeof(buf), "Strange read error from %s (%d - '%s')", host->target->targetipstr(), optval, strerror(optval));
|
||||
|
||||
Reference in New Issue
Block a user