ipv6: old_dport should be a __be16 in __ip6_datagram_connect()
authorStefano Brivio <[email protected]>
Mon, 19 Mar 2018 10:24:58 +0000 (11:24 +0100)
committerDavid S. Miller <[email protected]>
Tue, 20 Mar 2018 16:43:43 +0000 (12:43 -0400)
Fixes: 2f987a76a977 ("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]>
net/ipv6/datagram.c

index 8a9ac2d0f5d3e968b519098351e3217324fd2371..a9f7eca0b6a3fd373c81db2c41591b0691994848 100644 (file)
@@ -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;