]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Set value even if a string cannot be converted to a number
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Mar 2016 09:19:08 +0000 (09:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Mar 2016 09:19:08 +0000 (09:19 +0000)
src/libutil/str_util.c

index 5f4cd1c1ef8eb460ea00af54e21d474ea4729011..d79519c888cb0cd2ffec28b3accfb1ddec18b9aa 100644 (file)
@@ -435,6 +435,8 @@ rspamd_strtoul (const gchar *s, gsize len, gulong *value)
                        }
                }
                else {
+                       *value = v;
+
                        return FALSE;
                }
                p++;