Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2363?usp=email
to review the following change.
Change subject: xkey_provider: free the signing context when sign init fails
......................................................................
xkey_provider: free the signing context when sign init fails
xkey_native_sign() returned without EVP_PKEY_CTX_free() when
EVP_PKEY_sign_init_ex() failed.
Change-Id: I8a1b576401313f826a188dc40f226726f378066b
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/xkey_provider.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/63/2363/1
diff --git a/src/openvpn/xkey_provider.c b/src/openvpn/xkey_provider.c
index 9211c11..7cabaf4 100644
--- a/src/openvpn/xkey_provider.c
+++ b/src/openvpn/xkey_provider.c
@@ -1140,6 +1140,7 @@
if (EVP_PKEY_sign_init_ex(ectx, NULL) != 1)
{
msg(M_WARN, "WARN: xkey test_sign: call to EVP_PKEY_sign_init failed");
+ EVP_PKEY_CTX_free(ectx);
return 0;
}
EVP_PKEY_CTX_set_params(ectx, params);
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2363?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8a1b576401313f826a188dc40f226726f378066b
Gerrit-Change-Number: 2363
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel