From fd8208039ed169be4bd396e7cb8cb07f34f9d03c Mon Sep 17 00:00:00 2001 From: fyodor Date: Mon, 20 Nov 2006 03:48:57 +0000 Subject: [PATCH] fix bug in Marek's IP option code --- utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.cc b/utils.cc index 769788fa8..2d94d2db5 100644 --- a/utils.cc +++ b/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)