[openssh-commits] [openssh] 03/03: Resync ssh-keygen -W error message with upstream.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Sep 12 13:58:02 AEST 2016


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 7050896e7395866278c19c2ff080c26152619d1d
Author: Darren Tucker <dtucker at zip.com.au>
Date:   Mon Sep 12 13:57:28 2016 +1000

    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 bf7ade9..2a7939b 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 '?':

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list