aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-21 20:19:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-21 20:19:05 +0100
commitd524e67086f2802dd019adbfff3cc4ebd5eacf5d (patch)
tree6b088129b06969cf0a8cc0c69f1ebcb4389f7255 /src
parent10c1e15350a190560eb5b281779d68cbc099bc68 (diff)
downloadrspamd-d524e67086f2802dd019adbfff3cc4ebd5eacf5d.tar.gz
rspamd-d524e67086f2802dd019adbfff3cc4ebd5eacf5d.zip
[Fix] Fix misprint
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_url.c2
1 files changed, 1 insertions, 1 deletions
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);
}