Skip to content

Commit

Permalink
Run OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT) in mod_load() to
Browse files Browse the repository at this point in the history
prevent crashes on shutdown due to double-free.
  • Loading branch information
sobomax committed Apr 29, 2024
1 parent 92b0dcf commit 15617a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/tls_openssl/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ static int mod_load(void)
"very beginning of your script, before any other module!\n");
return -1;
}
OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL);

return 0;
}
Expand Down

0 comments on commit 15617a8

Please sign in to comment.