ofproto-dpif: Fix tag caching for learned flows.
[sliver-openvswitch.git] / ofproto / ofproto-dpif.c
index 44810dd..2a60ac1 100644 (file)
@@ -4247,7 +4247,7 @@ xlate_table_action(struct action_xlate_ctx *ctx,
         if (table_id > 0 && table_id < N_TABLES) {
             struct table_dpif *table = &ofproto->tables[table_id];
             if (table->other_table) {
-                ctx->tags |= (rule
+                ctx->tags |= (rule && rule->tag
                               ? rule->tag
                               : rule_calculate_tag(&ctx->flow,
                                                    &table->other_table->wc,