From 832554e35cdc042869ed14ff80174c70a678e400 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 8 Aug 2013 11:08:03 -0700 Subject: [PATCH] ofproto-dpif-xlate: Fix rare segfault on switch exit. Not all 'xport's have 'xbundle's, so this dereference is unsafe. Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 00fc582e5..305067853 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -1493,7 +1493,7 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, } ctx->xin->flow = old_flow; - ctx->xbridge = xport->xbundle->xbridge; + ctx->xbridge = xport->xbridge; if (ctx->xin->resubmit_stats) { netdev_vport_inc_tx(xport->netdev, ctx->xin->resubmit_stats); -- 2.47.0