ofproto-dpif-xlate: Fix freeing uninitialized "struct ofpbuf".
authorAlex Wang <alexw@nicira.com>
Fri, 11 Oct 2013 21:17:13 +0000 (14:17 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 11 Oct 2013 21:21:06 +0000 (14:21 -0700)
commit02ea2703b94a3d7e5412e9345f86ae80c182eaeb
tree510a59fe91a2a98e2b4deabcbe388547236265d3
parent9f5e8906e98786f2254eff53e337531aa70f1a59
ofproto-dpif-xlate: Fix freeing uninitialized "struct ofpbuf".

Commit 91d6cd12 (ofproto-dpif: Move send_packet() to
ofproto-dpif-xlate module.) introduced a bug that frees the "struct
ofpbuf" in 'xout' when the struct is not initialized.  This commit
fixes the bug.

Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-xlate.c