git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
odp-util: Fix parsing of actions encapsulated within "sample" actions.
[sliver-openvswitch.git]
/
lib
/
odp-util.c
diff --git
a/lib/odp-util.c
b/lib/odp-util.c
index
88986a2
..
ce45635
100644
(file)
--- a/
lib/odp-util.c
+++ b/
lib/odp-util.c
@@
-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);