Skip to content

Commit

Permalink
Merge branch 'freebsd/current/main' into hardened/current/master
Browse files Browse the repository at this point in the history
  • Loading branch information
HardenedBSD Sync Services committed Jul 5, 2024
2 parents c56e2ec + b81424a commit b5ae8e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crypto/openssh/clientloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,9 @@ obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout,
if (timespeccmp(&now, &chaff_until, >=)) {
/* Stop if there have been no keystrokes for a while */
stop_reason = "chaff time expired";
} else if (timespeccmp(&now, &next_interval, >=)) {
/* Otherwise if we were due to send, then send chaff */
} else if (timespeccmp(&now, &next_interval, >=) &&
!ssh_packet_have_data_to_write(ssh)) {
/* If due to send but have no data, then send chaff */
if (send_chaff(ssh))
nchaff++;
}
Expand Down

0 comments on commit b5ae8e5

Please sign in to comment.