]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: minor tidy-ups
authorViktor Szakats <commit@vsz.me>
Sun, 23 Mar 2025 13:58:18 +0000 (14:58 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 24 Mar 2025 11:37:44 +0000 (12:37 +0100)
Fix indentation and drop an unnecessary assigment.

Closes #16812

lib/vssh/libssh2.c

index 1587d251d15c2452343adb30dcd260db7c14912f..9cdfc101146d9d66df589c7dbda78087182e0051 100644 (file)
@@ -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);