Skip to content

Commit

Permalink
ipv6: old_dport should be a __be16 in __ip6_datagram_connect()
Browse files Browse the repository at this point in the history
Fixes: 2f987a7 ("net: ipv6: keep sk status consistent after datagram connect failure")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
sbrivio-rh authored and davem330 committed Mar 20, 2018
1 parent 8220ce6 commit 5f2fb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/datagram.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr,
struct in6_addr *daddr, old_daddr;
__be32 fl6_flowlabel = 0;
__be32 old_fl6_flowlabel;
__be32 old_dport;
__be16 old_dport;
int addr_type;
int err;

Expand Down

0 comments on commit 5f2fb80

Please sign in to comment.