]> granicus.if.org Git - curl/commitdiff
SSH: check md5 fingerprint case sensitively
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Sep 2016 08:20:35 +0000 (10:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 31 Oct 2016 07:46:35 +0000 (08:46 +0100)
lib/ssh.c

index fff578c7bd1f344bcfee64060f643b310f90f7e4..ad1147511e5ab729f9e292aecfef79b9c206ae6f 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -676,7 +676,7 @@ static CURLcode ssh_check_fingerprint(struct connectdata *conn)
    * against a known fingerprint, if available.
    */
   if(pubkey_md5 && strlen(pubkey_md5) == 32) {
-    if(!fingerprint || !strequal(md5buffer, pubkey_md5)) {
+    if(!fingerprint || strcmp(md5buffer, pubkey_md5)) {
       if(fingerprint)
         failf(data,
             "Denied establishing ssh session: mismatch md5 fingerprint. "