/* Translate the error type and code into an ofperr. */
error = ofperr_decode(oh->version, vendor, type, code);
if (error && payload) {
- ofpbuf_use_const(payload, b.data, b.size);
+ ofpbuf_use_const(payload, ofpbuf_data(&b), ofpbuf_size(&b));
}
return error;
}