mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 23:49:03 +00:00
Make the buffer for formatting the SCAN.DS test value in an OS fingerprint a
little bit bigger, so some seriously wrong distances aren't truncated. The buffer size used to be 8, which couldn't hold an observed network distance of -190: %DS=-19\0 01234567 I increased it to 10.
This commit is contained in:
@@ -462,7 +462,7 @@ static void WriteSInfo(char *ostr, int ostrlen, bool isGoodFP,
|
|||||||
int openTcpPort, int closedTcpPort, int closedUdpPort) {
|
int openTcpPort, int closedTcpPort, int closedUdpPort) {
|
||||||
struct tm *ltime;
|
struct tm *ltime;
|
||||||
time_t timep;
|
time_t timep;
|
||||||
char dsbuf[8], otbuf[8], ctbuf[8], cubuf[8];
|
char dsbuf[10], otbuf[8], ctbuf[8], cubuf[8];
|
||||||
char macbuf[16];
|
char macbuf[16];
|
||||||
timep = time(NULL);
|
timep = time(NULL);
|
||||||
ltime = localtime(&timep);
|
ltime = localtime(&timep);
|
||||||
|
|||||||
Reference in New Issue
Block a user