From 5cce329873ced8593a1b43c8c3086ef74f56206b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 23 Mar 2025 14:58:18 +0100 Subject: [PATCH] libssh2: minor tidy-ups Fix indentation and drop an unnecessary assigment. Closes #16812 --- lib/vssh/libssh2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 1587d251d1..9cdfc10114 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -598,9 +598,9 @@ static CURLcode ssh_check_fingerprint(struct Curl_easy *data) const char *pubkey_sha256 = data->set.str[STRING_SSH_HOST_PUBLIC_KEY_SHA256]; infof(data, "SSH MD5 public key: %s", - pubkey_md5 != NULL ? pubkey_md5 : "NULL"); + pubkey_md5 != NULL ? pubkey_md5 : "NULL"); infof(data, "SSH SHA256 public key: %s", - pubkey_sha256 != NULL ? pubkey_sha256 : "NULL"); + pubkey_sha256 != NULL ? pubkey_sha256 : "NULL"); if(pubkey_sha256) { const char *fingerprint = NULL; @@ -684,7 +684,7 @@ static CURLcode ssh_check_fingerprint(struct Curl_easy *data) if(pubkey_md5) { char md5buffer[33]; - const char *fingerprint = NULL; + const char *fingerprint; fingerprint = libssh2_hostkey_hash(sshc->ssh_session, LIBSSH2_HOSTKEY_HASH_MD5);