secchan: Fix segfault when subrules are invalidated.
authorBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 22:55:20 +0000 (14:55 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 22:55:20 +0000 (14:55 -0800)
commite6e60c552d66042bfb3ac200730f92d5be67f767
tree6e9de85b8383549af75068ee8ef02fa94f29083d
parent1f20159f4db16e52cf93b84edf2bcd2947a290ed
secchan: Fix segfault when subrules are invalidated.

The subrules were being freed, but not removed from the classifier, so a
segfault would occur later when they were accessed during a lookup or
traversal.

Thanks to Dan and Natasha for the report and testcases.
secchan/ofproto.c