Skip to content

Commit f45267c

Browse files
committed
intelmeta: pretty-print TXT policy manifest - fixup
The IndexIOAddress variant only applies for version 0. Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 26a0815 commit f45267c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmds/intelmeta/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func main() {
253253
fmt.Println(string(j))
254254
}
255255

256-
if txte != nil {
256+
if txte != nil && txte.GetEntryBase().Headers.Version.Major() == 0 {
257257
var x IndexIOAddress
258258
b := make([]byte, 8)
259259
binary.LittleEndian.PutUint64(b, txte.GetEntryBase().Headers.Address.Pointer())

0 commit comments

Comments
 (0)