bug fix for set intersection

This commit is contained in:
Vern Paxson 2018-07-06 13:46:06 -07:00
parent 072a25df0f
commit e416d34f1f

View file

@ -1734,9 +1734,9 @@ TableVal* TableVal::Intersect(const TableVal* tv) const
// Figure out which is smaller. // Figure out which is smaller.
if ( t1->Length() > t2->Length() ) if ( t1->Length() > t2->Length() )
{ // Swap. { // Swap.
const PDict(TableEntryVal)* t3 = t1; const PDict(TableEntryVal)* tmp = t1;
t1 = t2; t1 = t2;
t2 = t3; t2 = tmp;
} }
IterCookie* c = t1->InitForIteration(); IterCookie* c = t1->InitForIteration();