From 205ff32c6e9015dd11f885c372925e872d6b662f Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Tue, 24 Feb 2026 15:36:39 -0600 Subject: [PATCH] Set ssl to null after free to avoid double free --- psk/client-psk-resume.c | 1 + 1 file changed, 1 insertion(+) diff --git a/psk/client-psk-resume.c b/psk/client-psk-resume.c index 8fb94d11..2379652d 100644 --- a/psk/client-psk-resume.c +++ b/psk/client-psk-resume.c @@ -155,6 +155,7 @@ int main(int argc, char **argv){ /* cleanup without wolfSSL_Cleanup() and wolfSSL_CTX_free() for now */ wolfSSL_free(ssl); + ssl = NULL; /* * resume session, start new connection and socket