]> git.proxmox.com Git - ovs.git/commit
ofproto: Fix double-unref of temporary rule when learning.
authorBen Pfaff <blp@ovn.org>
Fri, 26 Jan 2018 19:43:27 +0000 (11:43 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 26 Jan 2018 20:30:47 +0000 (12:30 -0800)
commita8b629f86dacc66ea3b1c37dd1eb539128bcc40c
treea21cc6a90493d7abb4c21387637f63beff8781b1
parent18d8b83877aacc43057e3fc2103218ccd6cb7ee0
ofproto: Fix double-unref of temporary rule when learning.

When ofproto_flow_mod_init() accepts a rule, it takes ownership of it and
either unrefs it on error or transfers ownership to the struct it
initializes on success, but ofproto_flow_mod_init_for_learn() was unref-ing
it a second time if it reported an error.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: William Tu <u9012063@gmail.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c