ofp-util: Avoid use-after-free in ofputil_encode_flow_mod().
authorBen Pfaff <blp@nicira.com>
Sun, 24 Jun 2012 05:34:39 +0000 (22:34 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 25 Jun 2012 23:50:50 +0000 (16:50 -0700)
commit932ecd69e5b1b21d1df44404a60db5f73c3664b8
tree33cb974f7506b358614b001bf2b56cd484a942ad
parentcfceb2b57a3872a45609e9105f54e0b719bd5ee2
ofp-util: Avoid use-after-free in ofputil_encode_flow_mod().

nx_put_match() can reallocate the ofpbuf's data so we need to reload the
pointer.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c