aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-10 14:18:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-10 14:18:05 +0100
commitfe95675a5b2e8b863c6b1393c909254b1aca2e0d (patch)
tree64b5a468cfb47f9f88a0ddb0537030c0ecba39a7 /src/lua
parent0438950996eab6a879b7b6eafdd374f9f2cc9614 (diff)
downloadrspamd-fe95675a5b2e8b863c6b1393c909254b1aca2e0d.tar.gz
rspamd-fe95675a5b2e8b863c6b1393c909254b1aca2e0d.zip
Add extra check of string passed to lua.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 05c4730e4..98bbef8db 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2081,7 +2081,7 @@ lua_url_get_user (lua_State *L)
{
struct uri *url = lua_check_url (L);
- if (url != NULL) {
+ if (url != NULL && url->user != NULL) {
lua_pushlstring (L, url->user, url->userlen);
}
else {