ofpbuf: Fix setting of 'msg' in ofpbuf_clone_with_headroom()
authorJarno Rajahalme <jarno@ovn.org>
Mon, 7 Mar 2016 19:00:44 +0000 (11:00 -0800)
committerJarno Rajahalme <jarno@ovn.org>
Mon, 7 Mar 2016 19:00:44 +0000 (11:00 -0800)
commitaacaeb373079bf774770c0f7f183873a6ce9bbb4
tree8c86cab50128116773d85b78d1923791a2607388
parent742c06cc8861aec292e2fafd1d161c7b7929fd81
ofpbuf: Fix setting of 'msg' in ofpbuf_clone_with_headroom()

Commit 38876d31 fixed setting 'msg' when resizing an ofpbuf, but
failed to fix the same issue in ofpbuf_clone_with_headroom().  Without
this fix the newly cloned ofpbuf's 'msg', if non-NULL, will point to
the buffer of the original ofpbuf.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
lib/ofpbuf.c