diff --git a/src/cfgparse.c b/src/cfgparse.c index 4da1b6771..64a001e78 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -144,7 +144,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; }