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 f37b644..471ed51 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);
     }