[openssh-commits] [openssh] 02/03: upstream: fix exit status for downloading of FIDO resident keys;
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri May 29 13:28:53 AEST 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 224418cf55611869a4ace1b8b07bba0dff77a9c3
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri May 29 03:11:54 2020 +0000
upstream: fix exit status for downloading of FIDO resident keys;
from Pedro Martelletto, ok markus@
OpenBSD-Commit-ID: 0da77dc24a1084798eedd83c39a002a9d231faef
---
ssh-keygen.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 40590331..bdc29e00 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.411 2020/05/18 04:29:35 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.412 2020/05/29 03:11:54 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -2938,7 +2938,7 @@ do_download_sk(const char *skprovider, const char *device)
{
struct sshkey **keys;
size_t nkeys, i;
- int r, ok = -1;
+ int r, ret = -1;
char *fp, *pin = NULL, *pass = NULL, *path, *pubpath;
const char *ext;
@@ -3022,13 +3022,13 @@ do_download_sk(const char *skprovider, const char *device)
}
if (i >= nkeys)
- ok = 0; /* success */
+ ret = 0; /* success */
if (pass != NULL)
freezero(pass, strlen(pass));
for (i = 0; i < nkeys; i++)
sshkey_free(keys[i]);
free(keys);
- return ok ? 0 : -1;
+ return ret;
}
static void
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list