netinet6: Don't calculate offset on ICMP6 NI query if the copied mbuf is null.
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential D25075
netinet6: Don't calculate offset on ICMP6 NI query if the copied mbuf is null nc on May 30 2020, 7:30 PM. Authored by
Details
netinet6: Don't calculate offset on ICMP6 NI query if the copied mbuf is null. Submitted by: Neel Chauhan <neel AT neelc DOT org>
Diff Detail
Event TimelineComment Actions Adding the following two lines between the invocation of ni6_input() and the "nroff =" line is simpler. This noff line was added to suppress a "uninitialized variable" warning a long time ago, and the proposed change reverts it effectively while the code paths have no problem. if (n) n = ni6_input(n, off); if (n == NULL) break; noff = sizeof(struct ip6_hdr); |