aboutsummaryrefslogtreecommitdiff
path: root/lib/odp-util.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-05-09 12:21:54 -0700
committerBen Pfaff <blp@nicira.com>2012-05-10 15:46:27 -0700
commitdeb140c65f28239381682d0da0474a4b72ce7920 (patch)
tree339e6cf22491e049d7ff96269fd6ddafc868ace2 /lib/odp-util.c
parente4e849689b4d84b1ff9f85ab7f511abcb95b3a64 (diff)
odp-util: Fix parsing of actions encapsulated within "sample" actions.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/odp-util.c')
-rw-r--r--lib/odp-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 8fa33594..7bac4650 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -440,7 +440,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;
}
@@ -450,7 +450,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);