]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Plug an ifaddr leak when changing a route's src
authorrstone <rstone@FreeBSD.org>
Thu, 14 Dec 2017 20:48:50 +0000 (20:48 +0000)
committerrstone <rstone@FreeBSD.org>
Thu, 14 Dec 2017 20:48:50 +0000 (20:48 +0000)
commit01dbe7a2a4f8da078dc43d6781a8b6cac6dcaca2
tree30b88d54c92df8d95e398b723045263d7474bb6a
parent4b677830a5ff34f4cdc6605e43e031788602747f
Plug an ifaddr leak when changing a route's src

If a route is modified in a way that changes the route's source
address (i.e. the address used to access the gateway), then a
reference on the ifaddr representing the old source address will
be leaked if the address type does not have an ifa_rtrequest
method defined.  Plug the leak by releasing the reference in
all cases.

Differential Revision: https://reviews.freebsd.org/D13417
Reviewed by: ae
MFC after: 3 weeks
Sponsored by: Dell
sys/net/route.c