]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix a memory leak in rxkad_verify_response()
authorQiushi Wu <wu000273@umn.edu>
Fri, 22 May 2020 18:45:18 +0000 (13:45 -0500)
committerDavid Howells <dhowells@redhat.com>
Fri, 22 May 2020 23:35:46 +0000 (00:35 +0100)
commit6d4e540588300e69a597b24cafd0250c07fa08ba
treeef99f5b618065716ff017a5ced9f8402721d0737
parent7294489cf03f6a7220253d3da0ebec385eed5995
rxrpc: Fix a memory leak in rxkad_verify_response()

A ticket was not released after a call of the function
"rxkad_decrypt_ticket" failed. Thus replace the jump target
"temporary_error_free_resp" by "temporary_error_free_ticket".

Fixes: 088ac9d144ac1 ("rxrpc: Don't put crypto buffers on the stack")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Markus Elfring <Markus.Elfring@web.de>
net/rxrpc/rxkad.c