netinet6: allocate correct size for ip6_fwdtag struct; closes #342
Looks like this has been the case ever since if_index was introduced. While IPv4 was updated correctly it was forgotten for IPv6. Submitted by: @pletch
This commit is contained in:
parent
c962f76493
commit
da052d1dd3
1 changed files with 1 additions and 1 deletions
|
|
@ -3389,7 +3389,7 @@ ip6_set_fwdtag(struct mbuf *m, const struct sockaddr_in6 *dst, const struct ifne
|
|||
|
||||
m_tag_unlink(m, fwd_tag);
|
||||
} else {
|
||||
fwd_tag = m_tag_get(PACKET_TAG_IPFORWARD, sizeof(*dst),
|
||||
fwd_tag = m_tag_get(PACKET_TAG_IPFORWARD, sizeof(*fwd_info),
|
||||
M_NOWAIT);
|
||||
if (fwd_tag == NULL) {
|
||||
return (ENOBUFS);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue