s4:heimdal Use correct variable to advance past -- options in kpasswd
authorAndrew Bartlett <abartlet@samba.org>
Sat, 27 Mar 2010 08:13:28 +0000 (19:13 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 27 Mar 2010 08:13:28 +0000 (19:13 +1100)
This bug was introduced when kpasswd was migrated to a local getarg()
call, in Heimdal commit 7dd146072cd9b56d660a01f4aa20f8d81be356e8

Andrew Bartlett

source4/heimdal/kpasswd/kpasswd.c

index 57c989719e072c09b3df46203931a88c3a64d236..0258c1ac09ac6fa07cb49d88717320085f7bcbc5 100644 (file)
@@ -132,8 +132,8 @@ main (int argc, char **argv)
        print_version(NULL);
        return 0;
     }
        print_version(NULL);
        return 0;
     }
-    argc -= optind;
-    argv += optind;
+    argc -= optidx;
+    argv += optidx;
 
     ret = krb5_init_context (&context);
     if (ret)
 
     ret = krb5_init_context (&context);
     if (ret)