ofproto: Fix use after free in ofoperation_complete().
[cascardo/ovs.git] / ofproto / ofproto.c
index 354d9a4..ea75438 100644 (file)
@@ -3592,6 +3592,7 @@ ofoperation_complete(struct ofoperation *op, enum ofperr error)
         } else {
             oftable_substitute_rule(rule, op->victim);
             ofproto_rule_destroy__(rule);
+            op->rule = NULL;
         }
         break;