mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Fix panic in IP redirect. Panic was introduced in r293466.
Found by: Yamagi Burmeister <lists at yamagi.org>>
This commit is contained in:
parent
5147131ae4
commit
fcbfdb37a1
1 changed files with 2 additions and 2 deletions
|
|
@ -576,8 +576,8 @@ rtredirect_fib(struct sockaddr *dst,
|
|||
* Create new route, rather than smashing route to net.
|
||||
*/
|
||||
create:
|
||||
RTFREE(rt);
|
||||
rt = NULL;
|
||||
if (rt != NULL)
|
||||
RTFREE_LOCKED(rt);
|
||||
|
||||
flags |= RTF_DYNAMIC;
|
||||
bzero((caddr_t)&info, sizeof(info));
|
||||
|
|
|
|||
Loading…
Reference in a new issue