[ovs-git] [openvswitch/ovs] 6dbbf0: bridge: Fix null dereference on ct_timeout_policy ...

Yi-Hung Wei noreply at github.com
Sat Jun 27 23:44:37 UTC 2020


  Branch: refs/heads/branch-2.13
  Home:   https://github.com/openvswitch/ovs
  Commit: 6dbbf0771e3ec7158d798cc9e4b93186063ef2a1
      https://github.com/openvswitch/ovs/commit/6dbbf0771e3ec7158d798cc9e4b93186063ef2a1
  Author: Yi-Hung Wei <yihung.wei at gmail.com>
  Date:   2020-06-27 (Sat, 27 Jun 2020)

  Changed paths:
    M tests/ovs-vsctl.at
    M utilities/ovs-vsctl.c
    M vswitchd/bridge.c

  Log Message:
  -----------
  bridge: Fix null dereference on ct_timeout_policy record

Accoridng to vswitch.ovsschema, each CT_Zone record may have
zero or one associcated CT_Timeout_policy.  Thus, this patch
checks if ovsrec_ct_timeout_policy exist before accesses the
record.

VMWare-BZ: 2585825
Fixes: 45339539f69d ("ovs-vsctl: Add conntrack zone commands.")
Fixes: 993cae678bca ("ofproto-dpif: Consume CT_Zone, and CT_Timeout_Policy tables")
Reported-by: Yang Song <yangsong at vmware.com>
Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
Signed-off-by: William Tu <u9012063 at gmail.com>




More information about the git mailing list