From 751d22ec96231b64d0cc282aeefb33ea7ffc47d5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 2 Nov 2014 18:55:24 +0000 Subject: [PATCH] Fix some upstream issues. --- src/libutil/upstream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 67dcc83e4..b18e2585f 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -368,9 +368,9 @@ rspamd_upstreams_parse_line (struct upstream_list *ups, ret = TRUE; } } - p += len + 1; + p += len; /* Skip separators */ - p += strspn (p, separators) + 1; + p += strspn (p, separators); } return ret; @@ -451,7 +451,7 @@ static struct upstream* rspamd_upstream_get_round_robin (struct upstream_list *ups, gboolean use_cur) { guint max_weight = 0; - struct upstream *up, *selected; + struct upstream *up, *selected = NULL; guint i; /* Select upstream with the maximum cur_weight */ -- 2.39.5