diff options
| -rw-r--r-- | include/linux/xfrm.h | 2 | ||||
| -rw-r--r-- | net/xfrm/xfrm_user.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 698c14b09f96..f4050d3e8306 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -164,7 +164,7 @@ struct xfrm_usersa_info { }; struct xfrm_usersa_id { - xfrm_address_t saddr; + xfrm_address_t daddr; __u32 spi; __u16 family; __u8 proto; diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 0d1a20264a18..f7609cfe3bec 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -277,7 +277,7 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) struct xfrm_state *x; struct xfrm_usersa_id *p = NLMSG_DATA(nlh); - x = xfrm_state_lookup(&p->saddr, p->spi, p->proto, p->family); + x = xfrm_state_lookup(&p->daddr, p->spi, p->proto, p->family); if (x == NULL) return -ESRCH; @@ -403,7 +403,7 @@ static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma) struct sk_buff *resp_skb; int err; - x = xfrm_state_lookup(&p->saddr, p->spi, p->proto, p->family); + x = xfrm_state_lookup(&p->daddr, p->spi, p->proto, p->family); err = -ESRCH; if (x == NULL) goto out_noput; |
