[ovs-git] [openvswitch/ovs] 98670b: bridge: Fix null dereference on ct_timeout_policy ...

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


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 98670b77ffe8b36c9d5089022ee36680aeecc542
      https://github.com/openvswitch/ovs/commit/98670b77ffe8b36c9d5089022ee36680aeecc542
  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