Fix a possible memleak in SRP_VBASE_new
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 6 Sep 2023 12:06:52 +0000 (14:06 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 8 Sep 2023 07:20:58 +0000 (09:20 +0200)
commitd39402f7b909c9b5cc7eef7a633e14dccc90807d
tree1f6a72f01c2d903675037000ee07c71c274a9e8b
parent0d5d03787a6d0c836426e09f6ab7604547fd585f
Fix a possible memleak in SRP_VBASE_new

In the error handling case the memory in
vb->users_pwd was accidentally not released.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21981)

(cherry picked from commit 68e95f7840d0d8ac4e5e03381cf9d305578dd1c7)
crypto/srp/srp_vfy.c