diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/str_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 81679c2e6..849d11a4f 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1008,7 +1008,7 @@ rspamd_decode_base32_buf (const gchar *in, gsize inlen, guchar *out, gsize outle } } - if (processed_bits > 0 && o < end) { + if (processed_bits > 0 && o < end && acc != 0) { *o++ = (acc & 0xFF); } else if (o > end) { |