Resync ssh-keygen -W error message with upstream.

This commit is contained in:
Darren Tucker 2016-09-12 13:57:28 +10:00
parent 43cceff82c
commit 7050896e73
1 changed files with 3 additions and 3 deletions

View File

@ -2485,9 +2485,9 @@ main(int argc, char **argv)
case 'W':
generator_wanted = (u_int32_t)strtonum(optarg, 1,
UINT_MAX, &errstr);
if (errstr)
fatal("Desired generator has bad value: %s (%s)",
optarg, errstr);
if (errstr != NULL)
fatal("Desired generator invalid: %s (%s)",
optarg, errstr);
break;
#endif /* WITH_OPENSSL */
case '?':