rxrpc: Fix memory leak in rxkad_verify_response()
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 27 Aug 2020 15:55:46 +0000 (16:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2020 19:59:45 +0000 (12:59 -0700)
commitb43c75abfd084b9e961a47c6331e01f2f91176b6
tree25dbeb124e4ddd87f5ae5626d61c817466fdab92
parent8d73a73a7f6312e65f3c93b6cb93df9e1eff2ca1
rxrpc: Fix memory leak in rxkad_verify_response()

Fix a memory leak in rxkad_verify_response() whereby the response buffer
doesn't get freed if we fail to allocate a ticket buffer.

Fixes: ef68622da9cc ("rxrpc: Handle temporary errors better in rxkad security")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/rxkad.c