1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 15:39: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:
david
2008-10-03 18:46:22 +00:00
parent 83ec6aa665
commit 7f9bac76b2

View File

@@ -462,7 +462,7 @@ static void WriteSInfo(char *ostr, int ostrlen, bool isGoodFP,
int openTcpPort, int closedTcpPort, int closedUdpPort) {
struct tm *ltime;
time_t timep;
char dsbuf[8], otbuf[8], ctbuf[8], cubuf[8];
char dsbuf[10], otbuf[8], ctbuf[8], cubuf[8];
char macbuf[16];
timep = time(NULL);
ltime = localtime(&timep);