aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-07-14 16:35:57 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-07-14 16:35:57 +0200
commitb86cd006d33503d6407e14369610a65dcdcd261b (patch)
treedf5a4b7caa1980be2098cd8b618c717ef8f74f18 /conf.c
parent8fc8fb7afe9df12ca5e12429c919f353fc82f6ee (diff)
downloadpasst-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>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c1
1 files changed, 1 insertions, 0 deletions
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;