diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-24 13:11:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-24 13:11:25 +0100 |
commit | 44f4d5605ca904768e31a5cfe18a2782ce492e25 (patch) | |
tree | 40960b9c574d6b6935593a4843cb6d6b47afa0e4 /src/lua | |
parent | f85f97bfddc543cf211b94ec5784fd2c61832ac9 (diff) | |
download | rspamd-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.c | 2 |
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"); |