commit d524e67: [Fix] Fix misprint

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Oct 21 19:28:09 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-21 20:19:05 +0100
URL: https://github.com/rspamd/rspamd/commit/d524e67086f2802dd019adbfff3cc4ebd5eacf5d (HEAD -> master)

[Fix] Fix misprint

---
 src/lua/lua_url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 			}


More information about the Commits mailing list