diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 2c525baf0..f37b644b6 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);