1
0
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:
fyodor
2006-11-20 03:48:57 +00:00
parent 508e674ce4
commit fd8208039e

View File

@@ -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)