projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovs-ofctl: Fix write before beginning of string in "add-flow".
[openvswitch]
/
utilities
/
ovs-ofctl.c
diff --git
a/utilities/ovs-ofctl.c
b/utilities/ovs-ofctl.c
index 360f881edb1f3b0830196ac498bdedd371efd3e4..204e9582f22975dd5877eced8a78f9b3b432c9fa 100644
(file)
--- a/
utilities/ovs-ofctl.c
+++ b/
utilities/ovs-ofctl.c
@@
-780,9
+780,9
@@
str_to_flow(char *string, struct ofp_match *match, struct ofpbuf *actions,
if (!act_str) {
ovs_fatal(0, "must specify an action");
}
- *
(act_str-1)
= '\0';
+ *
act_str
= '\0';
- act_str = strchr(act_str, '=');
+ act_str = strchr(act_str
+ 1
, '=');
if (!act_str) {
ovs_fatal(0, "must specify an action");
}