aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Ash Berlin <ash_github@firemirror.com> 2016-04-09 18:37:05 +0100
committerLibravatarLibravatar Ash Berlin <ash_github@firemirror.com> 2016-04-09 18:37:05 +0100
commit85bcdb001a5d65ed32087b23ebd802ddba470088 (patch)
tree300a0153ae5009fc9e8196ffe0ae2a558abf87a4
parentdac0e48996b48537fa6d1f6b75b39731b9a58cb2 (diff)
downloadluaossl-85bcdb001a5d65ed32087b23ebd802ddba470088.tar.gz
luaossl-85bcdb001a5d65ed32087b23ebd802ddba470088.tar.bz2
luaossl-85bcdb001a5d65ed32087b23ebd802ddba470088.zip
Add terminator to openssl.x509.extension.
Without this we ended up over-running the buffer and setting functions as numbers again. Before: $ lua -e 'print(require "openssl.x509.extension".new)' 4519558960 After: $ lua -e 'print(require "openssl.x509.extension".new)' function: 0x10f9755e0
-rw-r--r--src/openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 11d02a0..2893d04 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -4328,6 +4328,7 @@ static const auxL_IntegerReg xe_textopts[] = {
{ "ERROR_UNKNOWN", X509V3_EXT_ERROR_UNKNOWN },
{ "PARSE_UNKNOWN", X509V3_EXT_PARSE_UNKNOWN },
{ "DUMP_UNKNOWN", X509V3_EXT_DUMP_UNKNOWN },
+ { NULL, 0 },
};
int luaopen__openssl_x509_extension(lua_State *L) {