dpctl: Fix assertion failure when second argument given to "dpctl status".
authorBen Pfaff <blp@nicira.com>
Fri, 27 Feb 2009 00:19:39 +0000 (16:19 -0800)
committerBen Pfaff <blp@nicira.com>
Sat, 28 Feb 2009 00:50:51 +0000 (16:50 -0800)
utilities/dpctl.c

index 603412765770121eda8c7105f03cab37444bdd0e..60c5f189e3fa7115b88f37d5583154912c9d1473 100644 (file)
@@ -489,6 +489,7 @@ do_status(const struct settings *s UNUSED, int argc, char *argv[])
     request->subtype = htonl(NXT_STATUS_REQUEST);
     if (argc > 2) {
         ofpbuf_put(b, argv[2], strlen(argv[2]));
+        update_openflow_length(b);
     }
     open_vconn(argv[1], &vconn);
     run(vconn_transact(vconn, b, &b), "talking to %s", argv[1]);