Skip to content

Commit

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

recheck no bug

Change-Id: Icd030ded7fc0e03fe7326478a0476d90619a58a3
Closes-bug: 1398885
  • Loading branch information
manishsing committed Dec 23, 2014
1 parent ec9d4ff commit b64fe29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vnsw/agent/pkt/flow_table.cc
Expand Up @@ -567,6 +567,9 @@ 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 b64fe29

Please sign in to comment.