diff options
author | Tobias Brunner <tobias.brunner@strongswan.org> | 2008-10-10 17:07:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-10 17:07:03 -0400 |
commit | 1839faab9a2747bcd30ee14e50575a39bf6735d4 (patch) | |
tree | d255fc1b5605587312ab8edc35ac61192e1bd1b7 /net/key/af_key.c | |
parent | d2a3b222cf976bc44bb9aed13f7b17feea28f633 (diff) |
af_key: fix SADB_X_SPDDELETE response
When deleting an SPD entry using SADB_X_SPDDELETE, c.data.byid is not
initialized to zero in pfkey_spddelete(). Thus, key_notify_policy()
responds with a PF_KEY message of type SADB_X_SPDDELETE2 instead of
SADB_X_SPDDELETE.
Signed-off-by: Tobias Brunner <tobias.brunner@strongswan.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 362fe317e1f3..e55e0441e4d9 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -2341,6 +2341,7 @@ static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, struct sadb_msg | |||
2341 | 2341 | ||
2342 | c.seq = hdr->sadb_msg_seq; | 2342 | c.seq = hdr->sadb_msg_seq; |
2343 | c.pid = hdr->sadb_msg_pid; | 2343 | c.pid = hdr->sadb_msg_pid; |
2344 | c.data.byid = 0; | ||
2344 | c.event = XFRM_MSG_DELPOLICY; | 2345 | c.event = XFRM_MSG_DELPOLICY; |
2345 | km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); | 2346 | km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c); |
2346 | 2347 | ||