diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-04 16:39:15 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-04 16:39:15 +0900 |
commit | eb80a29bcd66efc836e51ac37e5e19360d4ad077 (patch) | |
tree | 429bc491f506782c1e6b1cbe50b0fa111673ef20 /packet/rtr.go | |
parent | 9e773aa3e19785189e330d9742b3375cfedf096b (diff) |
packet: fix FlowSpecComponentItem Len()
If FlowSpecComponentItem object is created by API (e.g. CLI), the
length info in its Op isn't initialized. So its Len() returns a bogus
value. This patch initializes the length info when creating the object
instead of its Serialize().
https://github.com/osrg/gobgp/issues/753
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/rtr.go')
0 files changed, 0 insertions, 0 deletions