af_key: fix SADB_X_SPDDELETE response
authorTobias Brunner <tobias.brunner@strongswan.org>
Fri, 10 Oct 2008 21:07:03 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Oct 2008 21:07:03 +0000 (14:07 -0700)
commit1839faab9a2747bcd30ee14e50575a39bf6735d4
treed255fc1b5605587312ab8edc35ac61192e1bd1b7
parentd2a3b222cf976bc44bb9aed13f7b17feea28f633
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>
net/key/af_key.c