From bf67ce44d0403a087246b111d8a5c1cb4842e3fe Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 8 May 2021 20:57:18 +0100 Subject: [PATCH] Reinstate missing bit counts in Windows Pageant GUI. An embarrassing braino of && for || produced a boolean expression that could never evaluate true. (cherry picked from commit 8245510a029b3d5b6774fe931dc2725b0a687540) --- windows/winpgnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winpgnt.c b/windows/winpgnt.c index 6d6d1b9b..c0ffcf63 100644 --- a/windows/winpgnt.c +++ b/windows/winpgnt.c @@ -378,7 +378,7 @@ static void keylist_update_callback( ptrlen algname = get_string(src); const ssh_keyalg *alg = find_pubkey_alg_len(algname); - bool include_bit_count = (alg == &ssh_dss && alg == &ssh_rsa); + bool include_bit_count = (alg == &ssh_dss || alg == &ssh_rsa); int wordnumber = 0; for (const char *p = fingerprint; *p; p++) {