From: Vsevolod Stakhov Date: Mon, 21 Oct 2019 19:19:05 +0000 (+0100) Subject: [Fix] Fix misprint X-Git-Tag: 2.1~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d524e67086f2802dd019adbfff3cc4ebd5eacf5d;p=rspamd.git [Fix] Fix misprint --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index d21ab727f..bd79c1697 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -302,7 +302,7 @@ lua_url_tostring (lua_State *L) if (url != NULL && url->url != NULL) { if (url->url->protocol == PROTOCOL_MAILTO) { - if (url->url->userlen + 1 + url->url->hostlen >= url->url->urllen) { + if (url->url->userlen + 1 + url->url->hostlen <= url->url->urllen) { lua_pushlstring (L, url->url->user, url->url->userlen + 1 + url->url->hostlen); }