[ovs-git] [ovn-org/ovn] 080792: ovn-nbctl: fix sigsegv when nexthop arg is missing
Moshe Levi
noreply at github.com
Mon Jan 4 07:03:16 UTC 2021
Branch: refs/heads/branch-20.09
Home: https://github.com/ovn-org/ovn
Commit: 080792fc05130d660950cb6025298a46d4384617
https://github.com/ovn-org/ovn/commit/080792fc05130d660950cb6025298a46d4384617
Author: Moshe Levi <moshele at nvidia.com>
Date: 2021-01-04 (Mon, 04 Jan 2021)
Changed paths:
M utilities/ovn-nbctl.c
Log Message:
-----------
ovn-nbctl: fix sigsegv when nexthop arg is missing
running the following command will result core dump
$ ovn-nbctl lr-policy-add lr0 2000 ip4.src==192.168.0.15 reroute
Segmentation fault (core dumped)
This commit add the missing return when the nexthop is missing
with the fix running the same comand will result the currect output
$ ovn-nbctl lr-policy-add lr0 2000 ip4.src==192.168.0.15 reroute
ovn-nbctl: Nexthop is required when action is reroute.
Signed-off-by: Moshe Levi <moshele at nvidia.com>
Signed-off-by: Numan Siddique <numans at ovn.org>
(cherry-picked from master commit 5cdfecef6e84f47dcca83c221c1137968e424e5b)
More information about the git
mailing list