From b86cd006d33503d6407e14369610a65dcdcd261b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 14 Jul 2022 16:35:57 +0200 Subject: conf: Reset range endpoints after parsing one excluded port specifier I forgot to reset the range endpoints after parsing an item of the comma-separated list in commit 220759efb89a ("conf: Allow to specify ranges and ports excluded from given ranges") -- fix that. Fixes: 220759efb89a ("conf: Allow to specify ranges and ports excluded from given ranges") Signed-off-by: Stefano Brivio --- conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/conf.c b/conf.c index 14356b7..cddc769 100644 --- a/conf.c +++ b/conf.c @@ -257,6 +257,7 @@ static int conf_ports(struct ctx *c, char optname, const char *optarg, bitmap_set(exclude, i); } + start_src = end_src = -1; break; default: goto bad; -- cgit v1.2.3