Skip to content

Commit

Permalink
Merge pull request #546 from appneta/Bugs_#536_#537
Browse files Browse the repository at this point in the history
Bugs #536 #537
  • Loading branch information
fklassen authored Mar 12, 2019
2 parents be79c45 + 9ac9307 commit 098ad88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ get_layer4_v6(const ipv6_hdr_t *ip6_hdr, const int len)
dbgx(3, "Going deeper due to extension header 0x%02X", proto);
maxlen = len - (int)((u_char *)ip6_hdr - (u_char *)next);
exthdr = get_ipv6_next(next, maxlen);
if (exthdr == NULL)
return next;
proto = exthdr->ip_nh;
next = exthdr;
break;
Expand Down Expand Up @@ -536,6 +538,8 @@ get_ipv6_l4proto(const ipv6_hdr_t *ip6_hdr, int len)
case TCPR_IPV6_NH_HBH:
dbgx(3, "Jumping to next extension header (0x%hhx)", proto);
exthdr = get_ipv6_next((struct tcpr_ipv6_ext_hdr_base *)ptr, len);
if (exthdr == NULL)
return proto;
proto = exthdr->ip_nh;
ptr = (u_char *)exthdr;
break;
Expand Down

0 comments on commit 098ad88

Please sign in to comment.