secchan: Correctly maintain rule's number of actions.
authorBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 01:34:42 +0000 (17:34 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 01:34:42 +0000 (17:34 -0800)
commit78b192007dbd536bb39494a7287796a318e12644
treed1cc285b62d911932a20dac7e66e21022e4ec5a1
parent8bc0fb9652488bef87f569a62431a8482c1c072e
secchan: Correctly maintain rule's number of actions.

We were reallocating memory properly but not updating the "n_actions"
member, which sometimes led to reading past the end of a block.

This problem possibly caused segfaults, since the OpenFlow->ODP action
translation code assumes that OpenFlow actions are prevalidated, and
random memory is not necessarily valid OpenFlow actions :-)

Spotted by Valgrind.
secchan/ofproto.c