diff options
author | Ben Pfaff <blp@nicira.com> | 2012-05-09 12:21:54 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-05-10 15:46:31 -0700 |
commit | 211f89447bd7602c26a7d86d01d40ef433e8c0da (patch) | |
tree | 5fbe6dbfa171932d9d4ec5f7cefb20dfe104e6dd | |
parent | 683a1a13c384c738d2b0f8cd721a657242542d55 (diff) |
odp-util: Fix parsing of actions encapsulated within "sample" actions.
Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r-- | lib/odp-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c index ffb486ec..110b60be 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -434,7 +434,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; } @@ -444,7 +444,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); |