From: Justin Pettit Date: Wed, 8 Dec 2010 23:35:54 +0000 (-0800) Subject: ofp-util: Fix starting offset of OpenFlow error messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59edb09ce1a96cac70fe1a5e341bcebef2bcb3d7;p=openvswitch ofp-util: Fix starting offset of OpenFlow error messages. --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index f37b644b..471ed516 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1995,6 +1995,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh) } if (len) { + buf->size -= len; ofpbuf_put(buf, data, len); }