Skip to content

Commit e010045

Browse files
committed
Making sure to still calculate the LM challenge if
a client challenge is calculated, as we'd be using session security.
1 parent f9c351e commit e010045

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Robin/Ntlm/Message/NtlmV1AuthenticateMessageEncoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public function encode(
204204
);
205205
}
206206

207-
if (null !== $lm_hash && $calculate_lm_response) {
207+
if (null !== $lm_hash && $calculate_lm_response || null !== $client_challenge) {
208208
$lm_challenge_response = $this->calculateLmResponse(
209-
$lm_hash,
209+
$lm_hash ?: $nt_hash,
210210
$client_challenge,
211211
$server_challenge_nonce
212212
);

0 commit comments

Comments
 (0)