fix typo that caused a panic when processing an ICMP redirect
Sponsored by: FreeBSD Foundation
This commit is contained in:
parent
3bb2d995f0
commit
4de5d90c8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120820
@ -351,7 +351,7 @@ rtredirect(struct sockaddr *dst,
|
||||
rt = NULL;
|
||||
error = rtrequest1(RTM_ADD, &info, &rt);
|
||||
if (rt != NULL) {
|
||||
RT_UNLOCK(rt);
|
||||
RT_LOCK(rt);
|
||||
flags = rt->rt_flags;
|
||||
}
|
||||
stat = &rtstat.rts_dynamic;
|
||||
|
Loading…
Reference in New Issue
Block a user