ofpbuf: Fix use-after-free in bundle parse.
[cascardo/ovs.git] / lib / bundle.c
index 871a724..1451e92 100644 (file)
@@ -180,6 +180,7 @@ bundle_parse__(const char *s, char **save_ptr,
     }
     ofpact_finish(ofpacts, &bundle->ofpact);
 
+    bundle = ofpacts->header;
     bundle->basis = atoi(basis);
 
     if (!strcasecmp(fields, "eth_src")) {