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:
sam 2003-10-11 04:48:35 +00:00
parent 7c3bdb09ce
commit 0d000789dc

View File

@ -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;
}
/*