aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 5507762..f0d2a38 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -1191,6 +1191,9 @@ static _Bool auxL_newclass(lua_State *L, const char *name, const auxL_Reg *metho
_Bool fresh = auxL_newmetatable(L, name, reset);
int n;
+ if (!reset && !fresh)
+ return fresh;
+
auxL_setfuncs(L, metamethods, 0);
if ((n = auxL_liblen(methods))) {