projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d19321
)
odp-util: Fix parsing of actions encapsulated within "sample" actions.
author
Ben Pfaff
<blp@nicira.com>
Wed, 9 May 2012 19:21:54 +0000
(12:21 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 10 May 2012 18:44:04 +0000
(11:44 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c
patch
|
blob
|
history
diff --git
a/lib/odp-util.c
b/lib/odp-util.c
index 88986a2ea0b4c465523c4cfd3e1eb128ca6ed0bd..ce4563536e56c8c32d3d96f1cd6c6e7e512f5144 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);