ofproto-dpif-xlate: Fix rare segfault on switch exit.
authorEthan Jackson <ethan@nicira.com>
Thu, 8 Aug 2013 18:08:03 +0000 (11:08 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 8 Aug 2013 21:01:25 +0000 (14:01 -0700)
Not all 'xport's have 'xbundle's, so this dereference is unsafe.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c

index 00fc582..3050678 100644 (file)
@@ -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);