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:
parent
234b4ba1f7
commit
f3a2cbebdb
@ -404,7 +404,7 @@ rtredirect(struct sockaddr *dst,
|
||||
error = EHOSTUNREACH;
|
||||
done:
|
||||
if (rt)
|
||||
rtfree(rt);
|
||||
RTFREE_LOCKED(rt);
|
||||
out:
|
||||
if (error)
|
||||
rtstat.rts_badredirect++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user