mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
fix braino: null the pointer who's memory we just free'd, not some other
pointers that are (potentially) used later
This commit is contained in:
parent
c369afae3f
commit
3299a156c7
1 changed files with 1 additions and 1 deletions
|
|
@ -972,7 +972,7 @@ rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate)
|
|||
if (old) {
|
||||
Bcopy(dst, new, dlen);
|
||||
Free(old);
|
||||
dst = gate = 0; /* XXX??? */
|
||||
old = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue