[ovs-dev] ofproto-dpif-xlate: Restore table ID on error in xlate_table_action().
diff mbox series

Message ID 20191014223421.793-1-blp@ovn.org
State New
Headers show
Series
  • [ovs-dev] ofproto-dpif-xlate: Restore table ID on error in xlate_table_action().
Related show

Commit Message

Ben Pfaff Oct. 14, 2019, 10:34 p.m. UTC
Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 ofproto/ofproto-dpif-xlate.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index f92cb62c80ce..0fa5d8a7c61b 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -4369,6 +4369,7 @@  xlate_table_action(struct xlate_ctx *ctx, ofp_port_t in_port, uint8_t table_id,
                 !is_ip_any(&ctx->xin->flow)) {
                 xlate_report_error(ctx,
                                    "resubmit(ct) with non-tracked or non-IP packet!");
+                ctx->table_id = old_table_id;
                 return;
             }
             tuple_swap(&ctx->xin->flow, ctx->wc);