summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2020-12-17 23:28:50 +0000
committerdjm <djm@openbsd.org>2020-12-17 23:28:50 +0000
commit6e4da1a47b2596e1b01a8be55148c8a1814f4255 (patch)
treeed0dcad0532edc01bcb5fd19c7a7263c41c36111
parentrefactor client percent_expand() argument passing; consolidate the (diff)
downloadwireguard-openbsd-6e4da1a47b2596e1b01a8be55148c8a1814f4255.tar.xz
wireguard-openbsd-6e4da1a47b2596e1b01a8be55148c8a1814f4255.zip
fix possible error("%s", NULL) on error paths
-rw-r--r--usr.bin/ssh/auth2-pubkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index 9ba735f8729..99ba26e1418 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.101 2020/10/18 11:32:01 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.102 2020/12/17 23:28:50 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -924,12 +924,12 @@ user_key_command_allowed2(struct ssh *ssh, struct passwd *user_pw,
/* Turn the command into an argument vector */
if (argv_split(options.authorized_keys_command, &ac, &av) != 0) {
error("AuthorizedKeysCommand \"%s\" contains invalid quotes",
- command);
+ options.authorized_keys_command);
goto out;
}
if (ac == 0) {
error("AuthorizedKeysCommand \"%s\" yielded no arguments",
- command);
+ options.authorized_keys_command);
goto out;
}
snprintf(uidstr, sizeof(uidstr), "%llu",