From 17764fb2acb2321f852a82f1c96b47f73fa3599f Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 7 Dec 2010 21:58:30 -0800 Subject: [PATCH] ofp-util: Fix offset when making Nicira extension error messages. --- lib/ofp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2