diff --git a/samples/loop/client.lua b/samples/loop/client.lua index 7e5430d..f2033c7 100644 --- a/samples/loop/client.lua +++ b/samples/loop/client.lua @@ -23,6 +23,8 @@ while true do assert( peer:dohandshake() ) --]] + peer:getpeercertificate():extensions() + print(peer:receive("*l")) peer:close() end diff --git a/src/x509.c b/src/x509.c index 6aded50..9cae8b8 100644 --- a/src/x509.c +++ b/src/x509.c @@ -372,6 +372,7 @@ int meth_extensions(lua_State* L) break; } } + sk_GENERAL_NAME_free(values); lua_pop(L, 1); /* ret[oid] */ i++; /* Next extension */ }