diff options
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 0f8304b0246b..7b0a95abe934 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -2540,7 +2540,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, | |||
2540 | sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); | 2540 | sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); |
2541 | sel.sport = ((struct sockaddr_in *)(sa + 1))->sin_port; | 2541 | sel.sport = ((struct sockaddr_in *)(sa + 1))->sin_port; |
2542 | if (sel.sport) | 2542 | if (sel.sport) |
2543 | sel.sport_mask = ~0; | 2543 | sel.sport_mask = htons(0xffff); |
2544 | 2544 | ||
2545 | /* set destination address info of selector */ | 2545 | /* set destination address info of selector */ |
2546 | sa = ext_hdrs[SADB_EXT_ADDRESS_DST - 1], | 2546 | sa = ext_hdrs[SADB_EXT_ADDRESS_DST - 1], |
@@ -2549,7 +2549,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, | |||
2549 | sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); | 2549 | sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto); |
2550 | sel.dport = ((struct sockaddr_in *)(sa + 1))->sin_port; | 2550 | sel.dport = ((struct sockaddr_in *)(sa + 1))->sin_port; |
2551 | if (sel.dport) | 2551 | if (sel.dport) |
2552 | sel.dport_mask = ~0; | 2552 | sel.dport_mask = htons(0xffff); |
2553 | 2553 | ||
2554 | rq = (struct sadb_x_ipsecrequest *)(pol + 1); | 2554 | rq = (struct sadb_x_ipsecrequest *)(pol + 1); |
2555 | 2555 | ||