ofproto-dpif-xlate: Fix crash when using multicast snooping.
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 17 Feb 2016 14:43:56 +0000 (12:43 -0200)
committerBen Pfaff <blp@ovn.org>
Tue, 23 Feb 2016 16:34:53 +0000 (08:34 -0800)
commitf7c5f6aa47338ec48517bb175336ad63c4ac56a5
tree84be2999b42aaea491f400dfea2bdce85a0f7553
parentcfc6963c960f55151fa80784b4d4fd45c4195758
ofproto-dpif-xlate: Fix crash when using multicast snooping.

The revalidator thread may set may_learn and call xlate_actions with no packet
data. If the revalidated flow is IGMPv3 or MLD, vswitchd will crash when trying
to access the NULL packet.

Only process IGMP and MLD flows when there is a packet. This is a similar
behavior than what we have for other special packets.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Reported-by: Yi Ba <yby.developer@yahoo.com>
Reported-at: http://openvswitch.org/pipermail/discuss/2016-January/020023.html
Fixes: 06994f879c9d ("mcast-snooping: Add Multicast Listener Discovery support")
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS
ofproto/ofproto-dpif-xlate.c