fix typo that caused a panic when processing an ICMP redirect
Sponsored by: FreeBSD Foundation
This commit is contained in:
parent
4449caee4c
commit
c8d4080ce9
@ -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