X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/bca245acd4c03fd752d1a45f011ad495e60fe53d..eb6b6ca394357805f2bdba989abae309f718b4d8:/bsd/net/if_stf.c diff --git a/bsd/net/if_stf.c b/bsd/net/if_stf.c index 05e6087ab..5ceab5438 100644 --- a/bsd/net/if_stf.c +++ b/bsd/net/if_stf.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2018 Apple Inc. All rights reserved. + * Copyright (c) 2000-2020 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -571,6 +571,7 @@ stf_pre_output( IFA_REMREF(&ia6->ia_ifa); return ENOBUFS; } + *m0 = m; } ip6 = mtod(m, struct ip6_hdr *); tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; @@ -604,6 +605,8 @@ stf_pre_output( IFA_REMREF(&ia6->ia_ifa); return ENOBUFS; } + + *m0 = m; ip = mtod(m, struct ip *); bzero(ip, sizeof(*ip));