Skip to content

Commit

Permalink
revise comparison to match rest of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckCottrill committed Dec 16, 2023
1 parent c4ee66d commit a591bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ get_layer4_v6(const ipv6_hdr_t *ip6_hdr, const u_char *end_ptr)
// next points to l4 data
dbgx(3, "Go deeper due to fragment extension header 0x%02X", proto);
exthdr = get_ipv6_next(next, end_ptr);
if ((NULL == exthdr) || ((u_char *)exthdr > end_ptr)) {
if ((exthdr == NULL) || ((u_char *)exthdr > end_ptr)) {
next = NULL;
done = true;
break;
Expand Down

0 comments on commit a591bf7

Please sign in to comment.