mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
odp-util: Fix parsing of actions encapsulated within "sample" actions.
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -534,7 +534,7 @@ parse_odp_action(const char *s, const struct shash *port_names,
|
||||
for (;;) {
|
||||
int retval;
|
||||
|
||||
s += strspn(s, delimiters);
|
||||
n += strspn(s + n, delimiters);
|
||||
if (s[n] == ')') {
|
||||
break;
|
||||
}
|
||||
@@ -544,7 +544,6 @@ parse_odp_action(const char *s, const struct shash *port_names,
|
||||
return retval;
|
||||
}
|
||||
n += retval;
|
||||
|
||||
}
|
||||
nl_msg_end_nested(actions, actions_ofs);
|
||||
nl_msg_end_nested(actions, sample_ofs);
|
||||
|
Reference in New Issue
Block a user