1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Use RTFREE_LOCKED() instead of rtfree() when releasing a reference on the

'rt' route in rtredirect() as 'rt' is always locked.

MFC after:	1 week
PR:		kern/117913
Submitted by:	Stefan Lambrev  stefan.lambrev of moneybookers.com
This commit is contained in:
John Baldwin 2008-02-13 16:57:58 +00:00
parent 74d68da630
commit 1951e633c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176244

View File

@ -404,7 +404,7 @@ rtredirect(struct sockaddr *dst,
error = EHOSTUNREACH;
done:
if (rt)
rtfree(rt);
RTFREE_LOCKED(rt);
out:
if (error)
rtstat.rts_badredirect++;