mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Warn on failure of munmap.
Patch based on one by Bill Parker. http://seclists.org/nmap-dev/2012/q4/261
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Nmap 6.20BETA1 [2012-11-16]
|
Nmap 6.20BETA1 [2012-11-16]
|
||||||
|
|
||||||
|
o Added some new checks for failed library calls. [Bill Parker]
|
||||||
|
|
||||||
o Integrated all of your IPv4 OS fingerprint submissions since January
|
o Integrated all of your IPv4 OS fingerprint submissions since January
|
||||||
(more than 3,000 of them). Added 373 fingerprints, bringing the new
|
(more than 3,000 of them). Added 373 fingerprints, bringing the new
|
||||||
total to 3,946. Additions include Linux 3.6, Windows 8, Windows
|
total to 3,946. Additions include Linux 3.6, Windows 8, Windows
|
||||||
|
|||||||
4
nmap.cc
4
nmap.cc
@@ -2336,7 +2336,9 @@ int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) {
|
|||||||
|
|
||||||
/* Ensure the log file ends with a newline */
|
/* Ensure the log file ends with a newline */
|
||||||
filestr[filelen - 1] = '\n';
|
filestr[filelen - 1] = '\n';
|
||||||
munmap(filestr, filelen);
|
if (munmap(filestr, filelen) != 0)
|
||||||
|
gh_perror("%s: error in munmap(%p, %u)", __func__, filestr, filelen);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user