From db94f01831acdb60ae278f50dd6b659bc5922dba Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Tue, 31 May 2011 17:38:56 -0500 Subject: [PATCH] Fix declaration hiding len parameter in IPv6 decoder --- src/decode-ipv6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decode-ipv6.c b/src/decode-ipv6.c index 79a2f1cc77..2882322afb 100644 --- a/src/decode-ipv6.c +++ b/src/decode-ipv6.c @@ -253,9 +253,9 @@ DecodeIPV6ExtHdrs(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt // addr_buf,sizeof(addr_buf)); //printf("home addr %s\n", addr_buf); } - uint16_t len = (*(ptr + 1) + 2); - ptr += len; /* +2 for opt type and opt len fields */ - offset += len; + uint16_t optlen = (*(ptr + 1) + 2); + ptr += optlen; /* +2 for opt type and opt len fields */ + offset += optlen; } nh = *pkt;