ovs-dpctl: Fix setting of packet length for "controller" action
authorTetsuo NAKAGAWA <nakagawa@mxc.nes.nec.co.jp>
Sat, 20 Feb 2010 10:52:46 +0000 (02:52 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 20 Feb 2010 10:52:46 +0000 (02:52 -0800)
utilities/ovs-ofctl.c

index c36a3bc81a656d493a70b7f5baf52823d519f83b..b0f77410890cd0aaeab27dfb8425b9144c3e78a4 100644 (file)
@@ -631,7 +631,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);