2
0
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:
Ben Pfaff
2012-05-09 12:21:54 -07:00
parent 0d193212d6
commit 79d4ffe2c9

View File

@@ -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);