Skip to content

Commit e3ba8a1

Browse files
authored
the first entry in a log has index of 0 (#452)
Signed-off-by: Bob Callaway <[email protected]>
1 parent 9699214 commit e3ba8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/tlog/entry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func ParseEntry(protoEntry *v1.TransparencyLogEntry) (entry *Entry, err error) {
101101
if protoEntry == nil ||
102102
protoEntry.CanonicalizedBody == nil ||
103103
protoEntry.IntegratedTime == 0 ||
104-
protoEntry.LogIndex == 0 ||
104+
protoEntry.LogIndex < 0 ||
105105
protoEntry.LogId == nil ||
106106
protoEntry.LogId.KeyId == nil ||
107107
protoEntry.KindVersion == nil {

0 commit comments

Comments
 (0)