diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-07-14 16:35:57 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-14 16:35:57 +0200 |
commit | b86cd006d33503d6407e14369610a65dcdcd261b (patch) | |
tree | df5a4b7caa1980be2098cd8b618c717ef8f74f18 | |
parent | 8fc8fb7afe9df12ca5e12429c919f353fc82f6ee (diff) | |
download | passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar.gz passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar.bz2 passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar.lz passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar.xz passt-b86cd006d33503d6407e14369610a65dcdcd261b.tar.zst passt-b86cd006d33503d6407e14369610a65dcdcd261b.zip |
conf: Reset range endpoints after parsing one excluded port specifier2022_07_14.b86cd00
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 <sbrivio@redhat.com>
-rw-r--r-- | conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |