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 220759efb8 ("conf: Allow to specify
ranges and ports excluded from given ranges") -- fix that.

Fixes: 220759efb8 ("conf: Allow to specify ranges and ports excluded from given ranges")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-07-14 16:35:57 +02:00
parent 8fc8fb7afe
commit b86cd006d3

1
conf.c
View file

@ -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;