aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 5f9b145b0b90..742f9ff42fbf 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -770,9 +770,9 @@ static void sctp_inet6_skb_msgname(struct sk_buff *skb, char *msgname,
770 770
771 /* Map ipv4 address into v4-mapped-on-v6 address. */ 771 /* Map ipv4 address into v4-mapped-on-v6 address. */
772 if (sctp_sk(skb->sk)->v4mapped && 772 if (sctp_sk(skb->sk)->v4mapped &&
773 skb->nh.iph->version == 4) { 773 ip_hdr(skb)->version == 4) {
774 sctp_v4_map_v6((union sctp_addr *)sin6); 774 sctp_v4_map_v6((union sctp_addr *)sin6);
775 sin6->sin6_addr.s6_addr32[3] = skb->nh.iph->saddr; 775 sin6->sin6_addr.s6_addr32[3] = ip_hdr(skb)->saddr;
776 return; 776 return;
777 } 777 }
778 778