ax(ueps): fix comment in reader.go default case to use real variable name
The default switch case comment referenced `unknownTag` which does not exist in scope; the actual variable is `tagByte`. AX Principle 2 requires comments to show real, runnable examples — not invented identifiers. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
3cf01162d5
commit
2f2d863bed
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er
|
|||
case TagHMAC:
|
||||
hmacSignature = tagValue
|
||||
default:
|
||||
// signedData.WriteByte(unknownTag); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection
|
||||
// signedData.WriteByte(tagByte); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection
|
||||
signedData.WriteByte(tagByte)
|
||||
signedData.WriteByte(tagValueLength)
|
||||
signedData.Write(tagValue)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue