diff options
author | 2020-03-06 18:23:17 +0000 | |
---|---|---|
committer | 2020-03-06 18:23:17 +0000 | |
commit | 4e349e12d39cd6783e16a83a9eca668ebcdedc95 (patch) | |
tree | 2a64cbec7f8685f8a206d4445cf13a6e248d8d05 /usr.bin/ssh/sshkey.c | |
parent | passphrase depends on kdfname, not ciphername (possible null-deref); (diff) | |
download | wireguard-openbsd-4e349e12d39cd6783e16a83a9eca668ebcdedc95.tar.xz wireguard-openbsd-4e349e12d39cd6783e16a83a9eca668ebcdedc95.zip |
sshkey_cert_check_authority requires reason to be set; ok djm
Diffstat (limited to 'usr.bin/ssh/sshkey.c')
-rw-r--r-- | usr.bin/ssh/sshkey.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshkey.c b/usr.bin/ssh/sshkey.c index ed629e65c6c..a92205e2c00 100644 --- a/usr.bin/ssh/sshkey.c +++ b/usr.bin/ssh/sshkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.c,v 1.101 2020/03/06 18:21:28 markus Exp $ */ +/* $OpenBSD: sshkey.c,v 1.102 2020/03/06 18:23:17 markus Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * Copyright (c) 2008 Alexander von Gernler. All rights reserved. @@ -3027,8 +3027,8 @@ sshkey_cert_check_authority(const struct sshkey *k, u_int i, principal_matches; time_t now = time(NULL); - if (reason != NULL) - *reason = NULL; + if (reason == NULL) + return SSH_ERR_INVALID_ARGUMENT; if (want_host) { if (k->cert->type != SSH2_CERT_TYPE_HOST) { |