Skip to content

Commit

Permalink
intelmeta: pretty-print TXT policy manifest - fixup
Browse files Browse the repository at this point in the history
The IndexIOAddress variant only applies for version 0.

Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Sep 22, 2024
1 parent ec7a37a commit f5f60d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/intelmeta/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func main() {
fmt.Println(string(j))
}

if txte != nil {
if txte != nil && txte.GetEntryBase().Headers.Version.Major() == 0 {
var x IndexIOAddress
b := make([]byte, 8)
binary.LittleEndian.PutUint64(b, txte.GetEntryBase().Headers.Address.Pointer())
Expand Down

0 comments on commit f5f60d6

Please sign in to comment.