From f7ca97b823656d1fc130d7066d1267700b567f02 Mon Sep 17 00:00:00 2001 From: Sanjit Bhat Date: Sun, 24 Nov 2024 23:20:19 -0500 Subject: [PATCH] use std for overflow check --- kt/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kt/client.go b/kt/client.go index eeaabd3..723442f 100644 --- a/kt/client.go +++ b/kt/client.go @@ -34,7 +34,7 @@ func checkDig(servSigPk []byte, seenDigs map[uint64]*SigDig, dig *SigDig) *Clien return stdErr } // epoch not too high, which would overflow c.nextEpoch. - if dig.Epoch+1 == 0 { + if !std.SumNoOverflow(dig.Epoch, 1) { return stdErr } // agrees with prior digs.