Commit 2b749c01 authored by Ben Pfaff's avatar Ben Pfaff

ofp-util: Avoid use-after-free error in ofputil_append_meter_config().

Reported-by: default avatarweizj <334965317@qq.com>
Reported-at: https://github.com/openvswitch/ovs/pull/97Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
parent a255c963
......@@ -384,6 +384,7 @@ likunyun kunyunli@hotmail.com
meishengxin meishengxin@huawei.com
neeraj mehta mehtaneeraj07@gmail.com
rahim entezari rahim.entezari@gmail.com
weizj 34965317@qq.com
冯全树(Crab) fqs888@126.com
胡靖飞 hujingfei914@msn.com
张伟 zhangwqh@126.com
......
......@@ -1997,6 +1997,7 @@ ofputil_append_meter_config(struct ovs_list *replies,
ofputil_put_bands(mc->n_bands, mc->bands, msg);
reply = ofpbuf_at_assert(msg, start_ofs, sizeof *reply);
reply->length = htons(msg->size - start_ofs);
ofpmp_postappend(replies, start_ofs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment