Commit 5f2fb802 authored by Stefano Brivio's avatar Stefano Brivio Committed by David S. Miller

ipv6: old_dport should be a __be16 in __ip6_datagram_connect()

Fixes: 2f987a76 ("net: ipv6: keep sk status consistent after datagram connect failure")
Signed-off-by: default avatarStefano Brivio <sbrivio@redhat.com>
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Acked-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8220ce6d
...@@ -149,7 +149,7 @@ int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, ...@@ -149,7 +149,7 @@ int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr,
struct in6_addr *daddr, old_daddr; struct in6_addr *daddr, old_daddr;
__be32 fl6_flowlabel = 0; __be32 fl6_flowlabel = 0;
__be32 old_fl6_flowlabel; __be32 old_fl6_flowlabel;
__be32 old_dport; __be16 old_dport;
int addr_type; int addr_type;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment