Skip to content

Commit

Permalink
Commit on behalf of Manish
Browse files Browse the repository at this point in the history
Add null check as sg_ can be NULL if SecurityGroupEntry::Activate() is
not called.

Change-Id: Ic40815d36425ee4524cfd06d2a99ae04e6caa0f6
Closes-bug: 1398885
  • Loading branch information
ananth-at-camphor-networks committed Dec 12, 2014
1 parent 5658734 commit 7b923f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vnsw/agent/pkt/flow_table.cc
Expand Up @@ -567,6 +567,8 @@ static bool CopySgEntries(const VmInterface *vm_port, bool ingress_acl,
for (VmInterface::SecurityGroupEntrySet::const_iterator it =
vm_port->sg_list().list_.begin();
it != vm_port->sg_list().list_.end(); ++it) {
if (it->sg_ == NULL)
continue;
if (it->sg_->IsAclSet()) {
ret = true;
}
Expand Down

0 comments on commit 7b923f8

Please sign in to comment.