From 7050896e7395866278c19c2ff080c26152619d1d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 12 Sep 2016 13:57:28 +1000 Subject: [PATCH] Resync ssh-keygen -W error message with upstream. --- ssh-keygen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssh-keygen.c b/ssh-keygen.c index bf7ade952..2a7939bfc 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -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 '?':