diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2014-06-05 22:17:51 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2014-06-05 22:17:51 +0000 |
commit | b7d9fd1dd455713f37592c863646dd8c4a4d059e (patch) | |
tree | 50fa9edf7aa515f9c0646a72b0fed6d26f762914 | |
parent | ffbe2d0dd5a028202568a7d90caf93e54b0ee419 (diff) |
fix inverted test that caused PKCS#11 keys that were explicitly listed
not to be preferred. Reported by Dirk-Willem van Gulik
-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 e0d2dc990a6..ff07e5969fc 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.207 2014/04/29 18:01:49 markus Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.208 2014/06/05 22:17:50 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1177,7 +1177,7 @@ pubkey_prepare(Authctxt *authctxt) found = 0; TAILQ_FOREACH(id2, &files, next) { if (id2->key == NULL || - (id2->key->flags & KEY_FLAG_EXT) != 0) + (id2->key->flags & KEY_FLAG_EXT) == 0) continue; if (key_equal(id->key, id2->key)) { TAILQ_REMOVE(&files, id, next); |