From 95db8d24f01a186fecf24551209a6ec71c26068b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 11 Mar 2016 09:19:08 +0000 Subject: [PATCH] [Minor] Set value even if a string cannot be converted to a number --- src/libutil/str_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 5f4cd1c1ef..d79519c888 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -435,6 +435,8 @@ rspamd_strtoul (const gchar *s, gsize len, gulong *value) } } else { + *value = v; + return FALSE; } p++; -- 2.47.3