aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/attr_sql/pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/plugins/attr_sql/pool.c')
-rw-r--r--src/libstrongswan/plugins/attr_sql/pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/attr_sql/pool.c b/src/libstrongswan/plugins/attr_sql/pool.c
index 77d189707..5ecf80b42 100644
--- a/src/libstrongswan/plugins/attr_sql/pool.c
+++ b/src/libstrongswan/plugins/attr_sql/pool.c
@@ -1156,8 +1156,8 @@ static void do_args(int argc, char *argv[])
OP_BATCH
} operation = OP_UNDEF;
- /* set option index to first argument */
- optind = 1;
+ /* reinit getopt state */
+ optind = 0;
while (TRUE)
{