Skip to content

Commit 5f2fb80

Browse files
sbrivio-rhdavem330
authored andcommitted
ipv6: old_dport should be a __be16 in __ip6_datagram_connect()
Fixes: 2f987a7 ("net: ipv6: keep sk status consistent after datagram connect failure") Signed-off-by: Stefano Brivio <[email protected]> Acked-by: Paolo Abeni <[email protected]> Acked-by: Guillaume Nault <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8220ce6 commit 5f2fb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/datagram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr,
149149
struct in6_addr *daddr, old_daddr;
150150
__be32 fl6_flowlabel = 0;
151151
__be32 old_fl6_flowlabel;
152-
__be32 old_dport;
152+
__be16 old_dport;
153153
int addr_type;
154154
int err;
155155

0 commit comments

Comments
 (0)