From: Justin Pettit Date: Wed, 8 Dec 2010 05:58:30 +0000 (-0800) Subject: ofp-util: Fix offset when making Nicira extension error messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17764fb2acb2321f852a82f1c96b47f73fa3599f;p=openvswitch ofp-util: Fix offset when making Nicira extension error messages. --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 2c525baf..f37b644b 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1988,7 +1988,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh) oem->type = htons(NXET_VENDOR); oem->code = htons(NXVC_VENDOR_ERROR); - nve = ofpbuf_put_uninit(buf, sizeof *nve); + nve = (struct nx_vendor_error *)oem->data; nve->vendor = htonl(vendor_id); nve->type = htons(type); nve->code = htons(code);