ofproto-dpif-xlate: Fix null pointer dereference
authorAnoob Soman <anoob.soman@citrix.com>
Wed, 14 May 2014 13:32:16 +0000 (14:32 +0100)
committerBen Pfaff <blp@nicira.com>
Wed, 14 May 2014 17:16:46 +0000 (10:16 -0700)
actions (in xlate_actions__) would be NULL when xlate_actions()
is called from packet_out()->ofproto_dpif_execute_actions().
This causes a NULL pointer to be dereferenced when
ctx.xbridge->netflow is set.

Signed-off-by: Anoob Soman <anoob.soman@citrix.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
ofproto/ofproto-dpif-xlate.c

diff --git a/AUTHORS b/AUTHORS
index 977753b..9364401 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -13,6 +13,7 @@ Andrew Lambeth          wal@nicira.com
 Andy Hill               hillad@gmail.com
 Andy Southgate          andy.southgate@citrix.com
 Andy Zhou               azhou@nicira.com
+Anob Soman              anoob.soman@citrix.com
 Ansis Atteka            aatteka@nicira.com
 Anupam Chanda           achanda@nicira.com
 Arun Sharma             arun.sharma@calsoftinc.com
index f05a93d..5be02df 100644 (file)
@@ -3228,11 +3228,6 @@ xlate_actions__(struct xlate_in *xin, struct xlate_out *xout)
                             ctx.xin->resubmit_stats->n_bytes);
 
         if (ctx.xbridge->netflow) {
-            const struct ofpact *ofpacts;
-            size_t ofpacts_len;
-
-            ofpacts_len = actions->ofpacts_len;
-            ofpacts = actions->ofpacts;
             if (ofpacts_len == 0
                 || ofpacts->type != OFPACT_CONTROLLER
                 || ofpact_next(ofpacts) < ofpact_end(ofpacts, ofpacts_len)) {