[ovs-git] [openvswitch/ovs] 4e8aa5: ovn-nbctl: Don't segfault when ovn-northd doesn't ...

Justin Pettit noreply at github.com
Wed Mar 13 19:42:03 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 4e8aa5378d8a43ddc9374d831a92e35e1d477f8e
      https://github.com/openvswitch/ovs/commit/4e8aa5378d8a43ddc9374d831a92e35e1d477f8e
  Author: Justin Pettit <jpettit at ovn.org>
  Date:   2019-03-13 (Wed, 13 Mar 2019)

  Changed paths:
    M ovn/utilities/ovn-nbctl.c

  Log Message:
  -----------
  ovn-nbctl: Don't segfault when ovn-northd doesn't configure dynamic addresses.

When ovn-nbctl is used to configure a logical switch port's addresses, it
does a sanity-check to make sure that a duplicate address isn't being
used.  If a port is configured as "dynamic", ovn-northd is supposed to
populate the "dynamic_addresses" column in the Logical_Switch_Port
table.  If it isn't ovn-nbctl, would dereference a null pointer as part
of the duplicate address check.  This patch checks that "dynamic_addresses"
is actually set first.

Signed-off-by: Justin Pettit <jpettit at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list