HomeFreeBSD

Fix possible memory leak.

Description

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

Details

Committed
aeDec 16 2017, 2:36 PM
Parents
rS326897: lld: Slightly simplify code and add comment.
Branches
Unknown
Tags
Unknown