From 75cf7563c644f806342a695f5853b89ab7e03b56 Mon Sep 17 00:00:00 2001 From: mouring Date: Tue, 20 Aug 2002 18:41:15 +0000 Subject: [PATCH] - aaron@cvs.openbsd.org 2002/08/08 13:50:23 [sshconnect1.c] Use & to test if bits are set, not &&; markus@ ok. --- ChangeLog | 3 +++ sshconnect1.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 318ce975..75e3da9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,9 @@ [ssh-rsa.c] replace RSA_verify with our own version and avoid the OpenSSL ASN.1 parser for authentication; ok deraadt/djm + - aaron@cvs.openbsd.org 2002/08/08 13:50:23 + [sshconnect1.c] + Use & to test if bits are set, not &&; markus@ ok. 20020813 - (tim) [configure.ac] Display OpenSSL header/library version. diff --git a/sshconnect1.c b/sshconnect1.c index e28b7fc7..2fc9a981 100644 --- a/sshconnect1.c +++ b/sshconnect1.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect1.c,v 1.51 2002/05/23 19:24:30 markus Exp $"); +RCSID("$OpenBSD: sshconnect1.c,v 1.52 2002/08/08 13:50:23 aaron Exp $"); #include #include @@ -254,7 +254,7 @@ try_rsa_authentication(int idx) * load the private key. Try first with empty passphrase; if it * fails, ask for a passphrase. */ - if (public->flags && KEY_FLAG_EXT) + if (public->flags & KEY_FLAG_EXT) private = public; else private = key_load_private_type(KEY_RSA1, authfile, "", NULL); -- 2.45.2