fix typo that caused a panic when processing an ICMP redirect

Sponsored by:	FreeBSD Foundation
This commit is contained in:
sam 2003-10-05 19:05:53 +00:00
parent 4449caee4c
commit c8d4080ce9

View File

@ -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;