[ovs-git] [openvswitch/ovs] 4e08f7: ofp-flow: minimatch is initialized twice.

GitHub noreply at github.com
Wed Apr 4 21:05:10 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 4e08f7cdada008b54617a4ff0b117dd7633a7cae
      https://github.com/openvswitch/ovs/commit/4e08f7cdada008b54617a4ff0b117dd7633a7cae
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2018-04-04 (Wed, 04 Apr 2018)

  Changed paths:
    M lib/ofp-flow.c

  Log Message:
  -----------
  ofp-flow: minimatch is initialized twice.

It is possible that 'fm->match' gets initialized twice in this function,
which makes the first one leak because its pointer is overwritten by the
second initialization.

This patch fixes this issue.

Fixes: 6a6b7060655e ("ofp-flow: Reduce memory consumption for ofputil_flow_mod, using minimatch.")
Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list