aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-24 13:11:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-24 13:11:25 +0100
commit44f4d5605ca904768e31a5cfe18a2782ce492e25 (patch)
tree40960b9c574d6b6935593a4843cb6d6b47afa0e4 /src/lua
parentf85f97bfddc543cf211b94ec5784fd2c61832ac9 (diff)
downloadrspamd-44f4d5605ca904768e31a5cfe18a2782ce492e25.tar.gz
rspamd-44f4d5605ca904768e31a5cfe18a2782ce492e25.zip
[Minor] Fix load of the rsa key from base64
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c
index 938fabec2..50702199b 100644
--- a/src/lua/lua_rsa.c
+++ b/src/lua/lua_rsa.c
@@ -357,7 +357,6 @@ lua_rsa_privkey_load_base64 (lua_State *L)
}
b = BIO_new_mem_buf (decoded, dec_len);
- g_free (decoded);
rsa = d2i_RSAPrivateKey_bio (b, NULL);
if (rsa == NULL) {
@@ -372,6 +371,7 @@ lua_rsa_privkey_load_base64 (lua_State *L)
}
BIO_free (b);
+ g_free (decoded);
}
else {
return luaL_error (L, "invalid arguments");