Fix bug in make_add_simple_flow() that busts secchan's in-band control.
authorBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 23:26:33 +0000 (15:26 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 23:26:33 +0000 (15:26 -0800)
lib/vconn.c

index 745cd7619564a33db4d45d4978898dd8ce3c076c..12d3ad4f2ff67b688b9ef9ee602cb76fe85b95bd 100644 (file)
@@ -879,7 +879,7 @@ make_add_simple_flow(const struct flow *flow,
 {
     struct ofp_action_output *oao;
     struct ofpbuf *buffer = make_add_flow(flow, buffer_id, idle_timeout,
-            sizeof oao);
+                                          sizeof *oao);
     oao = ofpbuf_put_zeros(buffer, sizeof *oao);
     oao->type = htons(OFPAT_OUTPUT);
     oao->len = htons(sizeof *oao);