ofp-util: Fix starting offset of OpenFlow error messages.
authorJustin Pettit <jpettit@nicira.com>
Wed, 8 Dec 2010 23:35:54 +0000 (15:35 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 9 Dec 2010 00:17:07 +0000 (16:17 -0800)
lib/ofp-util.c

index f37b644b672015d086420361b811169c61b95f67..471ed5169a666b413b00a4541507cc8ff34faca8 100644 (file)
@@ -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);
     }