aboutsummaryrefslogtreecommitdiffstats
path: root/src/openssl.c
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-29 11:19:56 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-29 11:27:55 +1000
commitbac568e59ef630d3236f5cd69c5b7ba8fc8f4906 (patch)
treeec5e437f1d41a7773b5a9068ec2def98290bcfc5 /src/openssl.c
parent7accb21ce7912fdb257b860cde1b1891d48e1296 (diff)
downloadluaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.tar.gz
luaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.tar.bz2
luaossl-bac568e59ef630d3236f5cd69c5b7ba8fc8f4906.zip
src/openssl.c: ssl_push doesn't need to return anything
Diffstat (limited to 'src/openssl.c')
-rw-r--r--src/openssl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 46a9493..d0011ca 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -765,7 +765,7 @@ static void *loadfield_udata(lua_State *L, int index, const char *k, const char
/* Forward declaration */
-static SSL *ssl_push(lua_State *, SSL *);
+static void ssl_push(lua_State *, SSL *);
/* push an ssl object into lua in a way that is safe from OOM
* Lua 5.1 does not support normally returning values from lua_cpcall
@@ -8941,13 +8941,11 @@ EXPORT int luaopen__openssl_ssl_context(lua_State *L) {
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-static SSL *ssl_push(lua_State *L, SSL *ssl) {
+static void ssl_push(lua_State *L, SSL *ssl) {
SSL **ud = prepsimple(L, SSL_CLASS);
SSL_up_ref(ssl);
*ud = ssl;
-
- return *ud;
} /* ssl_push() */