Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
route-table: Use ofpbuf_use_const() for multipath attributes.
The use of ofpbuf_use_data() would allow someone to change the code to modify the buffer, which consequently would lead to memory allocations. Since there are no ofpbuf_uninit() calls in place that might invite a future bug. Let's make use of ofpbuf_use_const() instead. Fixes: 91fc511 ("route-table: Support parsing multipath routes.") Signed-off-by: Frode Nordahl <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information