diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kdc/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kdc/main.c b/src/kdc/main.c index c2bc6c2f0..c3b7b802e 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -665,9 +665,11 @@ initialize_realms(krb5_context kcontext, int argc, char **argv) } /* - * Loop through the option list. Each time we encounter a realm name, - * use the previously scanned options to fill in for defaults. + * Loop through the option list. Each time we encounter a realm name, use + * the previously scanned options to fill in for defaults. We do this + * twice if worker processes are used, so we must initialize optind. */ + optind = 1; while ((c = getopt(argc, argv, "x:r:d:mM:k:R:e:P:p:s:nw:4:T:X3")) != -1) { switch(c) { case 'x': |
