summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-09 21:34:29 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-09 21:34:29 +0900
commita1c1142ee400e8c90613fe27f3f6499b4678eabf (patch)
tree7a097adda0a53b264254585668988c75db66626a
parent658e2afce4480065423180c132172e3633c5ac2d (diff)
packet: fix EVPNMulticastEthernetTagRoute Serialize()
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--packet/bgp.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index 9ae1aa32..7779d205 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1193,11 +1193,9 @@ func (er *EVPNMulticastEthernetTagRoute) Serialize() ([]byte, error) {
} else {
return nil, fmt.Errorf("Invalid IP address length", er.IPAddressLength)
}
-
if err != nil {
return nil, err
}
- buf = append(buf, tbuf...)
return buf, nil
}