diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-05 14:21:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-05 14:21:23 +0100 |
commit | 91154ccc0114f1dca3b803a9c9bcfd065297c329 (patch) | |
tree | 3205ee550635c0673d79d9589ff1b639d2c432f5 /src/libutil | |
parent | 87c820b8f1fe48291041955868d6dbd15eee9990 (diff) | |
download | rspamd-91154ccc0114f1dca3b803a9c9bcfd065297c329.tar.gz rspamd-91154ccc0114f1dca3b803a9c9bcfd065297c329.zip |
[Minor] Disable warning if cannot normalize in-place
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/str_util.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 6f241b88c..fc8d6637b 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -2062,8 +2062,11 @@ rspamd_normalise_unicode_inplace (rspamd_mempool_t *pool, gchar *start, src + end, nsym - end, &uc_err); if (!U_SUCCESS (uc_err)) { - msg_warn_pool_check ("cannot normalise URL: %s", - u_errorName (uc_err)); + if (uc_err != U_BUFFER_OVERFLOW_ERROR) { + msg_warn_pool_check ("cannot normalise URL: %s", + u_errorName (uc_err)); + } + goto out; } @@ -2077,7 +2080,8 @@ rspamd_normalise_unicode_inplace (rspamd_mempool_t *pool, gchar *start, } *len = nsym; - out: + +out: if (src) { g_free (src); |