Skip to content

Commit f8e1569

Browse files
author
Kiesel Sebastian
committed
Use correct comparison operator when checking host fingerprints
on-behalf-of: e-solutions-GmbH <info@esolutions.de>
1 parent 75d613e commit f8e1569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpseclibV3/SftpConnectionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private function checkFingerprint(SFTP $connection): void
126126
: [$this->hostFingerprint];
127127

128128
foreach ($expectedFingerprints as $expectedFingerprint) {
129-
if (0 !== strcasecmp($expectedFingerprint, $fingerprint)) {
129+
if (0 === strcasecmp($expectedFingerprint, $fingerprint)) {
130130
return;
131131
}
132132
}

0 commit comments

Comments
 (0)