[ovs-git] [ovn-org/ovn] 74b522: ovn-nbctl: fix sigsegv when nexthop arg is missing

Moshe Levi noreply at github.com
Mon Jan 4 07:15:26 UTC 2021


  Branch: refs/heads/branch-20.03
  Home:   https://github.com/ovn-org/ovn
  Commit: 74b522d6ec85a38e33fce433c7e07c603a6d6979
      https://github.com/ovn-org/ovn/commit/74b522d6ec85a38e33fce433c7e07c603a6d6979
  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