secchan: Fix random memory corruption due to uninitialized pointer.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 00:48:39 +0000 (16:48 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 00:48:39 +0000 (16:48 -0800)
commit60822fb14f547eadb3b08a52da68a6ae3913808f
tree3549bec4d3e0221e8f6e06b8e058b2f23ec98973
parent391dc9971040ad8dea65c2c74cfc944ae4a456d6
secchan: Fix random memory corruption due to uninitialized pointer.

The kernel returns flow stats and actions to userspace on flow deletion.
By not initializing the odp_flow's "actions" or "n_actions" members we
caused it to use whatever happened to be in that space on the stack, which
caused random memory corruption.

(There is no need to initialize the "stats" member, since it is not read,
only written, by the kernel, but by doing so we quiet valgrind.)
secchan/ofproto.c