diff options
author | Ash Berlin <ash_github@firemirror.com> | 2016-04-09 18:37:05 +0100 |
---|---|---|
committer | Ash Berlin <ash_github@firemirror.com> | 2016-04-09 18:37:05 +0100 |
commit | 85bcdb001a5d65ed32087b23ebd802ddba470088 (patch) | |
tree | 300a0153ae5009fc9e8196ffe0ae2a558abf87a4 | |
parent | dac0e48996b48537fa6d1f6b75b39731b9a58cb2 (diff) | |
download | luaossl-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.c | 1 |
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[] = { | |||
4328 | { "ERROR_UNKNOWN", X509V3_EXT_ERROR_UNKNOWN }, | 4328 | { "ERROR_UNKNOWN", X509V3_EXT_ERROR_UNKNOWN }, |
4329 | { "PARSE_UNKNOWN", X509V3_EXT_PARSE_UNKNOWN }, | 4329 | { "PARSE_UNKNOWN", X509V3_EXT_PARSE_UNKNOWN }, |
4330 | { "DUMP_UNKNOWN", X509V3_EXT_DUMP_UNKNOWN }, | 4330 | { "DUMP_UNKNOWN", X509V3_EXT_DUMP_UNKNOWN }, |
4331 | { NULL, 0 }, | ||
4331 | }; | 4332 | }; |
4332 | 4333 | ||
4333 | int luaopen__openssl_x509_extension(lua_State *L) { | 4334 | int luaopen__openssl_x509_extension(lua_State *L) { |