From 85bcdb001a5d65ed32087b23ebd802ddba470088 Mon Sep 17 00:00:00 2001 From: Ash Berlin Date: Sat, 9 Apr 2016 18:37:05 +0100 Subject: 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 --- src/openssl.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3-55-g6feb