diff --git a/src/x509.c b/src/x509.c index fd893db..e89b602 100644 --- a/src/x509.c +++ b/src/x509.c @@ -101,6 +101,8 @@ static void push_asn1_string(lua_State* L, ASN1_STRING *string, int encode) lua_pushlstring(L, (char*)data, len); OPENSSL_free(data); } + else + lua_pushnil(L); } }