ofproto-dpif: Fix segfault in mirror_update_dups().
authorJustin Pettit <jpettit@nicira.com>
Thu, 17 Nov 2011 22:08:09 +0000 (14:08 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 17 Nov 2011 22:31:07 +0000 (14:31 -0800)
commitedb0540bbcc624675b8745f52e085ef15d0fa023
tree6c066e6966cce7c55ffb03452125e294b538dc5e
parentdc5f3fefa100de35701368eff559f9e9ba1eb2eb
ofproto-dpif: Fix segfault in mirror_update_dups().

Fixes crash introduced in 9ba15e (ofproto-dpif: Improve RSPAN
translation performance from O(n**2) to O(n).)  The code always
dereferenced the members of the "mirrors" array in ofproto even if they
were null.
ofproto/ofproto-dpif.c