]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix possible memory leak.
authorae <ae@FreeBSD.org>
Sat, 16 Dec 2017 14:36:21 +0000 (14:36 +0000)
committerae <ae@FreeBSD.org>
Sat, 16 Dec 2017 14:36:21 +0000 (14:36 +0000)
commit84904a69126764e9e2e27c2e41b2c39acdb1a605
treea57494014a730c2951fdd12650759705ec3d10d4
parent0ef030232ed2361a3f42007729ab6cb4f802a09e
Fix possible memory leak.

vxlan_ftable entries are sorted in ascending order, due to wrong arguments
order it is possible to stop search before existing element will be found.
Then new element will be allocated in vxlan_ftable_update_locked() and can
be inserted in the list second time or trigger MPASS() assertion with
enabled INVARIANTS.

PR: 224371
MFC after: 1 week
sys/net/if_vxlan.c