Fix problem where the add_flow command is reading an unitialized array.
authorJustin Pettit <jpettit@nicira.com>
Tue, 22 Apr 2008 06:49:17 +0000 (23:49 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 26 Apr 2008 21:08:41 +0000 (14:08 -0700)
utilities/dpctl.c

index d79bf00cfb0238102d086b4eb7e4d83aa07271c5..8637202dc3e93881b605d7d8ccac4f798078b9a1 100644 (file)
@@ -568,7 +568,6 @@ static void do_dump_flows(int argc, char *argv[])
 static void do_add_flows(int argc, char *argv[])
 {
     struct vconn *vconn;
-    char vconn_name[16];
 
     FILE *file;
     char line[1024];
@@ -578,7 +577,7 @@ static void do_add_flows(int argc, char *argv[])
         fatal(errno, "%s: open", argv[2]);
     }
 
-    run(vconn_open_block(vconn_name, &vconn), "connecting to %s", argv[1]);
+    run(vconn_open_block(argv[1], &vconn), "connecting to %s", argv[1]);
     while (fgets(line, sizeof line, file)) {
         struct buffer *buffer;
         struct ofp_flow_mod *ofm;