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
7c3bdb09ce
commit
0d000789dc
@ -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…
x
Reference in New Issue
Block a user