From 59edb09ce1a96cac70fe1a5e341bcebef2bcb3d7 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Wed, 8 Dec 2010 15:35:54 -0800 Subject: [PATCH] ofp-util: Fix starting offset of OpenFlow error messages. --- lib/ofp-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index f37b644b6..471ed5169 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); } -- 2.43.0