Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/fmsgd/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ func readVersionOrChallenge(c net.Conn, r *bufio.Reader, h *FMsgHeader) (bool, e
if challengeVersion == 1 {
return true, handleChallenge(c, r)
}
if err := sendCode(c, RejectCodeUnsupportedVersion); err != nil {
log.Printf("WARN: failed to send unsupported version response: %s", err)
}
// TERMINATE without responding (SPEC §10.3/§10.5): the challenger's
// next read is exactly the 32-byte CHALLENGE-RESPONSE hash, so a
// response code here would be indistinguishable from hash bytes.
return false, fmt.Errorf("unsupported challenge version: %d", challengeVersion)
}
if v != 1 {
Expand Down
Loading