diff options
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 7b0a95abe934..5502df115a63 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -1206,6 +1206,9 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr, | |||
1206 | x->sel.prefixlen_s = addr->sadb_address_prefixlen; | 1206 | x->sel.prefixlen_s = addr->sadb_address_prefixlen; |
1207 | } | 1207 | } |
1208 | 1208 | ||
1209 | if (!x->sel.family) | ||
1210 | x->sel.family = x->props.family; | ||
1211 | |||
1209 | if (ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]) { | 1212 | if (ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]) { |
1210 | struct sadb_x_nat_t_type* n_type; | 1213 | struct sadb_x_nat_t_type* n_type; |
1211 | struct xfrm_encap_tmpl *natt; | 1214 | struct xfrm_encap_tmpl *natt; |