Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zebra: fix crash when encapsulating a segment-list with 1 SID
A crash happens when an SRTE creates a seg6local route with the end.b6.encaps operation. The crash is related to a segment-list with one segment only. There would have not been any crashes if at least two segments were present. The proposed fix does prevent from configuring a seg6local route if a segment-list has only one element. Fixes: 13a1297ec83f ("zebra: add end.b6.encaps to rt_netlink") Signed-off-by: Philippe Guibert <[email protected]> Signed-off-by: Dmytro Shytyi <[email protected]>
- Loading branch information