]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] Fix listen & more of 2 couples <ip>:<port>
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Tue, 27 Jan 2009 15:57:08 +0000 (16:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Jan 2009 20:00:18 +0000 (21:00 +0100)
Fix "listen www-mutualise 80.248.x.y1:80,80.248.x.y2:80,80.248.x.y3:80":

[ALERT] 309/161509 (15450) : Invalid server address: '80.248.x.y1:80,80.248.x.y2'
[ALERT] 309/161509 (15450) : Error reading configuration file : /etc/haproxy/haproxy.cfg

Bug reported by Laurent Dolosor.

src/cfgparse.c

index f98d07e0aa06c66cef803b95f9785be38549bab5..5d70341d74aa68807964b1140602d22251c619bf 100644 (file)
@@ -159,7 +159,7 @@ static struct listener *str2listener(char *str, struct listener *tail)
 
                str = next;
                /* 1) look for the end of the first address */
-               if ((next = strrchr(str, ',')) != NULL) {
+               if ((next = strchr(str, ',')) != NULL) {
                        *next++ = 0;
                }