aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25thandclement.com> 2015-04-17 16:54:40 -0700
committerLibravatarLibravatar william <william@25thandclement.com> 2015-04-17 16:54:40 -0700
commit551ef0b4d84767eaf0c9a88b7a297f19052218e1 (patch)
tree3469d985f9df8b07fbfd1c3e73feab1fdf9133c2 /src
parent25715fc735e2a87e52a1929a96c88bea4c8dc9cf (diff)
downloadluaossl-551ef0b4d84767eaf0c9a88b7a297f19052218e1.tar.gz
luaossl-551ef0b4d84767eaf0c9a88b7a297f19052218e1.tar.bz2
luaossl-551ef0b4d84767eaf0c9a88b7a297f19052218e1.zip
forgot to install our X509_STORE_free replacement
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 03cc3f7..5872197 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -1,7 +1,7 @@
/* ==========================================================================
* openssl.c - Lua OpenSSL
* --------------------------------------------------------------------------
- * Copyright (c) 2012-2014 William Ahern
+ * Copyright (c) 2012-2015 William Ahern
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
@@ -831,8 +831,14 @@ static int compat_init(void) {
} else {
/*
* Because our onfree callback was invoked, X509_STORE_free
- * appears not to obey reference counts. Ensure that our
- * fixed version is called on SSL_CTX destruction.
+ * appears not to obey reference counts. Use our fixed
+ * version in our own code.
+ */
+ compat.X509_STORE_free = &compat_X509_STORE_free;
+
+ /*
+ * Ensure that our fixed version is called on SSL_CTX
+ * destruction.
*
* NB: We depend on the coincidental order of operations in
* SSL_CTX_free that user data destruction occurs before