]> git.proxmox.com Git - ovs.git/commit
ofp-flow: minimatch is initialized twice.
authorYifeng Sun <pkusunyifeng@gmail.com>
Tue, 3 Apr 2018 17:12:59 +0000 (10:12 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 4 Apr 2018 21:04:54 +0000 (14:04 -0700)
commit4e08f7cdada008b54617a4ff0b117dd7633a7cae
tree927c2de7284fb117d77565bb364e5e05414534d7
parentb339ef592a2dc7acb945cd18f89169194ad23761
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@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ofp-flow.c