diff options
author | 2020-04-17 03:38:47 +0000 | |
---|---|---|
committer | 2020-04-17 03:38:47 +0000 | |
commit | e1aa747820c7c2e73cd30281189e23e0092f4552 (patch) | |
tree | 67f0e48b7ba8e26049c85fdd92263607b88c64f6 /usr.bin/ssh/sshconnect2.c | |
parent | mention that /etc/hosts.equiv and /etc/shosts.equiv are not (diff) | |
download | wireguard-openbsd-e1aa747820c7c2e73cd30281189e23e0092f4552.tar.xz wireguard-openbsd-e1aa747820c7c2e73cd30281189e23e0092f4552.zip |
fix reversed test that caused IdentitiesOnly=yes to not apply to keys
loaded from a PKCS11Provider; bz3141, ok dtucker@
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 8cc13e6210b..ad45598d620 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.320 2020/02/06 22:48:23 djm Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.321 2020/04/17 03:38:47 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1664,7 +1664,7 @@ pubkey_prepare(Authctxt *authctxt) found = 0; TAILQ_FOREACH(id2, &files, next) { if (id2->key == NULL || - (id2->key->flags & SSHKEY_FLAG_EXT) == 0) + (id2->key->flags & SSHKEY_FLAG_EXT) != 0) continue; if (sshkey_equal(id->key, id2->key)) { TAILQ_REMOVE(&files, id, next); |