diff options
Diffstat (limited to 'packet/bgp/validate.go')
-rw-r--r-- | packet/bgp/validate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/validate.go b/packet/bgp/validate.go index 1b8f27c9..60cf26e4 100644 --- a/packet/bgp/validate.go +++ b/packet/bgp/validate.go @@ -274,7 +274,7 @@ func validateAsPathValueBytes(data []byte) (bool, error) { return false, NewMessageError(eCode, eSubCode, nil, "AS PATH the number of AS is incorrect") } segLength := int(asNum) - if use4byte == true { + if use4byte { segLength *= 4 } else { segLength *= 2 |