]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Move -M handling code to match upstream.
authorDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 03:30:50 +0000 (13:30 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 03:51:04 +0000 (13:51 +1000)
ssh-keygen.c

index 0149a090d348bfd2afacb60336b9af3d6b769dd3..09d995ffbcc43aa153ad564876c11e12235d2fc3 100644 (file)
@@ -2455,11 +2455,6 @@ main(int argc, char **argv)
                                fatal("Desired generator has bad value: %s (%s)",
                                        optarg, errstr);
                        break;
-               case 'M':
-                       memory = (u_int32_t)strtonum(optarg, 1, UINT_MAX, &errstr);
-                       if (errstr)
-                               fatal("Memory limit is %s: %s", errstr, optarg);
-                       break;
                case 'G':
                        do_gen_candidates = 1;
                        if (strlcpy(out_file, optarg, sizeof(out_file)) >=
@@ -2483,6 +2478,12 @@ main(int argc, char **argv)
                                fatal("Checkpoint filename too long");
                        checkpoint = xstrdup(optarg);
                        break;
+               case 'M':
+                       memory = (u_int32_t)strtonum(optarg, 1, UINT_MAX,
+                           &errstr);
+                       if (errstr)
+                               fatal("Memory limit is %s: %s", errstr, optarg);
+                       break;
                case 'S':
                        /* XXX - also compare length against bits */
                        if (BN_hex2bn(&start, optarg) == 0)