aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index b2c50cab7..882ac5565 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -845,6 +845,10 @@ rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen,
else {
g_free (res);
+ if (outlen) {
+ *outlen = 0;
+ }
+
return NULL;
}