From 9f0100c2027bb702502f50988994ad887757b3ae Mon Sep 17 00:00:00 2001 From: Tetsuo NAKAGAWA Date: Sat, 20 Feb 2010 02:52:46 -0800 Subject: [PATCH] ovs-dpctl: Fix setting of packet length for "controller" action --- utilities/ovs-ofctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 6a84ed076..f82dedc49 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -676,7 +676,7 @@ str_to_action(char *str, struct ofpbuf *b) /* Unless a numeric argument is specified, we send the whole * packet to the controller. */ - if (arg && (strspn(act, "0123456789") == strlen(act))) { + if (arg && (strspn(arg, "0123456789") == strlen(arg))) { oao->max_len = htons(str_to_u32(arg)); } else { oao->max_len = htons(UINT16_MAX); -- 2.43.0