mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
fix bug in Marek's IP option code
This commit is contained in:
parent
508e674ce4
commit
fd8208039e
1 changed files with 1 additions and 1 deletions
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue