diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index ed2256f..91b11c5 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -71,9 +71,9 @@ func (p *PacketBuilder) MarshalAndSign(sharedSecret []byte) ([]byte, error) { } // Threat Score is uint16, needs binary packing - tsBuf := make([]byte, 2) - binary.BigEndian.PutUint16(tsBuf, p.Header.ThreatScore) - if err := writeTLV(buf, TagThreatScore, tsBuf); err != nil { + threatScoreBytes := make([]byte, 2) + binary.BigEndian.PutUint16(threatScoreBytes, p.Header.ThreatScore) + if err := writeTLV(buf, TagThreatScore, threatScoreBytes); err != nil { return nil, err }