mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +00:00
fix bug in Marek's IP option code
This commit is contained in:
2
utils.cc
2
utils.cc
@@ -626,7 +626,7 @@ int parse_ip_options(char *txt, u8 *data, int datalen, int* firsthopoff, int* la
|
||||
if(*c==' ' || *c==',')
|
||||
break;
|
||||
n = buf;
|
||||
while(*c=='.' || (*c>='0' && *c<='9') && n-buf <= ((int)sizeof(buf)-1))
|
||||
while((*c=='.' || (*c>='0' && *c<='9')) && n-buf <= ((int)sizeof(buf)-1))
|
||||
*n++ = *c++;
|
||||
*n = '\0'; c--;
|
||||
if(d+4>=dataend)
|
||||
|
||||
Reference in New Issue
Block a user