From 9fe1c5a91e930372765c9277f7b473ce3bea7266 Mon Sep 17 00:00:00 2001 From: Logan oos Even <46396513+Logan007@users.noreply.github.com> Date: Tue, 26 Jan 2021 14:11:18 +0545 Subject: [PATCH] fixed conf file option parsing analogous to 18107bcb7c62e56c37018ae51d0869a8858b6a85 --- src/sn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sn.c b/src/sn.c index d5ad800..78e885e 100644 --- a/src/sn.c +++ b/src/sn.c @@ -485,7 +485,7 @@ static int loadFromFile (const char *path, n2n_sn_t *sss) { line_vec[2] = strtok(NULL, "\t "); // not to duplicate the option parser code, call loadFromCLI and pretend we have no option read yet - optind = 1; + optind = 0; // if separate second token present (optional argument, not part of first), then announce 3 vector members loadFromCLI(line_vec[2] ? 3 : 2, line_vec, sss); }