[openssh-commits] [openssh] 01/02: upstream: better error message when trying to use a FIDO key
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Feb 28 12:29:13 AEDT 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch V_8_2
in repository openssh.
commit 24b8bc578d076697d4d3c34584ea869e37fd50e7
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri Feb 28 01:06:05 2020 +0000
upstream: better error message when trying to use a FIDO key
function and SecurityKeyProvider is empty
OpenBSD-Commit-ID: e56602c2ee8c82f835d30e4dc8ee2e4a7896be24
---
ssh-sk.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ssh-sk.c b/ssh-sk.c
index 5ff93819..30225891 100644
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.27 2020/02/06 22:30:54 naddy Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.28 2020/02/28 01:06:05 djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -100,6 +100,10 @@ sshsk_open(const char *path)
struct sshsk_provider *ret = NULL;
uint32_t version;
+ if (path == NULL || *path == '\0') {
+ error("No FIDO SecurityKeyProvider specified");
+ return NULL;
+ }
if ((ret = calloc(1, sizeof(*ret))) == NULL) {
error("%s: calloc failed", __func__);
return NULL;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list