Skip to content

Commit

Permalink
Merge "Fix Agent crash in FlowStatsCollector::DeleteEvent"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 11, 2016
2 parents 12e60b1 + 1e9a732 commit a82c99e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vnsw/agent/vrouter/flow_stats/flow_stats_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,11 @@ void FlowStatsManager::DeleteEvent(const FlowEntryPtr &flow,
return;
}
FlowStatsCollector *fsc = flow->fsc();
assert(fsc != NULL);
fsc->DeleteEvent(flow, params);
/* Ignore delete requests if FlowStatsCollector is NULL */
if (fsc != NULL) {
fsc->DeleteEvent(flow, params);
flow->set_fsc(NULL);
}
}

void FlowStatsManager::UpdateStatsEvent(const FlowEntryPtr &flow,
Expand Down

0 comments on commit a82c99e

Please sign in to comment.