Skip to content

Commit f2dec15

Browse files
Merge pull request #560 from embhorn/fix_psk_resume_client
Set ssl to null after free to avoid double free
2 parents a71710e + 205ff32 commit f2dec15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

psk/client-psk-resume.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ int main(int argc, char **argv){
155155

156156
/* cleanup without wolfSSL_Cleanup() and wolfSSL_CTX_free() for now */
157157
wolfSSL_free(ssl);
158+
ssl = NULL;
158159

159160
/*
160161
* resume session, start new connection and socket

0 commit comments

Comments
 (0)