From: Justin Pettit Date: Tue, 22 Apr 2008 06:49:17 +0000 (-0700) Subject: Fix problem where the add_flow command is reading an unitialized array. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd415531c5acf3125928f6351060fe352bdd08e;p=openvswitch Fix problem where the add_flow command is reading an unitialized array. --- diff --git a/utilities/dpctl.c b/utilities/dpctl.c index d79bf00c..8637202d 100644 --- a/utilities/dpctl.c +++ b/utilities/dpctl.c @@ -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;