ofp-util: Reload ofpbuf pointers after nx_put_match().
authorBen Pfaff <blp@nicira.com>
Thu, 12 Jul 2012 18:31:13 +0000 (11:31 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Jul 2012 18:31:13 +0000 (11:31 -0700)
commit1a59dc2c8a23dcd6a240fa6ee099008602c9f73e
treeacb24f8892c69089874f802e5ca6d1875e0b7bb4
parent615660a99a2c1b1b4e0af258f1e8f8a9ea6cd3d4
ofp-util: Reload ofpbuf pointers after nx_put_match().

Fixes a wild pointer write when nx_put_match() expands the ofpbuf.

The change to the OFPST_FLOW case isn't strictly a bug fix, it just makes
the code for that case more closely resemble the NXST_FLOW case.

Bug #12403.
Bug #12460.
Bug #12461.
Bug #12481.
Reported-by: Timothy Chen <tchen@nicira.com>
Reported-by: Natasha Gude <natasha@nicira.com>
Reported-by: James Schmidt <jschmidt@nicira.com>
Reported-by: Alan Shieh <ashieh@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c