Currently, if unroll_xlate is passed to ovs-ofctl as one of actions,
let say 'ovs-ofctl add-flow br0 in_port=1,actions=unroll_xlate',
ovs-ofctl will crash. This patch fixes it by returning an error
message.
Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11184
Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
parse_UNROLL_XLATE(char *arg OVS_UNUSED,
const struct ofpact_parse_params *pp OVS_UNUSED)
{
- OVS_NOT_REACHED();
+ return xasprintf("UNROLL is an internal action "
+ "that shouldn't be used via OpenFlow");
}
static void