diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-03 10:35:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 10:35:00 +0100 |
commit | 362ccbd041085e19dab908ad2a03eb90cf057b98 (patch) | |
tree | f59c70bedc90a5690cb38f4b60e5f34224602318 | |
parent | ef337345b5ff8e96cbc7138c0d3cbc0730df2cae (diff) | |
parent | c3aee1e131443db0f246f91c2fa3491dec5a083a (diff) | |
download | rspamd-362ccbd041085e19dab908ad2a03eb90cf057b98.tar.gz rspamd-362ccbd041085e19dab908ad2a03eb90cf057b98.zip |
Merge pull request #2559 from negram/arg-check-fix
[Minor] Fixed argument check
-rw-r--r-- | src/lua/lua_http.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 96872108c..474021485 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -854,6 +854,9 @@ lua_http_request (lua_State *L) if (task == NULL && cfg == NULL) { return luaL_error (L, "Bad params to rspamd_http:request(): either task or config should be set"); } + if (ev_base == NULL) { + return luaL_error (L, "Bad params to rspamd_http:request(): ev_base isn't passed"); + } cbd = g_malloc0 (sizeof (*cbd)); cbd->cbref = cbref; |