From af1f48ccb5876c523d92779417407a84385a69af Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 28 Nov 2017 13:00:26 -0800 Subject: [PATCH] Fix leak with EC Point mul, where `inSet` wasn't being set, which caused a leak. --- src/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 28ae7eb71..435f01b52 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -22408,6 +22408,8 @@ int wolfSSL_EC_POINT_mul(const WOLFSSL_EC_GROUP *group, WOLFSSL_EC_POINT *r, mp_clear(&prime); if (ret == MP_OKAY) { + r->inSet = 1; /* mark internal set */ + /* set the external value for the computed point */ ret = SetECPointExternal(r); if (ret != WOLFSSL_SUCCESS) {