ofproto-dpif: Fix 'size' argument to fix_sflow_action().
authorBen Pfaff <blp@nicira.com>
Tue, 30 Apr 2013 18:24:11 +0000 (11:24 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Apr 2013 18:24:11 +0000 (11:24 -0700)
commita93f1927f21f2a14c4166d3ffc0131b1fb4be1bb
tree313cb4850dba7bdbc52b5e1d2c0246aa469cfb9b
parentd5de5b0d7ec2c3bf0eb1243145bd31efbf3078fd
ofproto-dpif: Fix 'size' argument to fix_sflow_action().

The sflow action only uses 8 bytes of the total 16 for user_action_cookie,
but fix_sflow_action() was checking for the presence of all 16, so if the
sflow action wasn't followed by a few other actions then 'cookie' would
end up NULL and the assertion would segfault.

Bug #16659.
Reported-by: Dhaval Badiani <dbadiani@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
ofproto/ofproto-dpif.c