diff options
-rw-r--r-- | packet/bgp/bgp.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 1879d1f0..b7470529 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -2742,11 +2742,10 @@ func parseDecValuesCmd(myCmd string, validationFunc func(int) error) ([][2]int, } case DECLogicOpNameMap[DEC_LOGIC_OP_AND], DECLogicOpNameMap[DEC_LOGIC_OP_OR]: if bit := DECLogicOpValueMap[myCmdChar]; bit&DECLogicOp(operatorValue[0]) == 0 { + decOperatorsAndValues = append(decOperatorsAndValues, operatorValue) if myCmdChar == DECLogicOpNameMap[DEC_LOGIC_OP_AND] { - operatorValue[0] |= int(bit) + operatorValue[0] = int(bit) } - decOperatorsAndValues = append(decOperatorsAndValues, operatorValue) - operatorValue[0] = 0 operatorValue[1] = 0 index++ } else { |