Bungled cut/paste leaves kernel with page faults..
(read all about it!)
This commit is contained in:
parent
0b980a17c8
commit
ff6d0a5916
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27458
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)rtsock.c 8.5 (Berkeley) 11/2/94
|
||||
* $Id: rtsock.c,v 1.27 1997/04/27 20:01:00 wollman Exp $
|
||||
* $Id: rtsock.c,v 1.28 1997/07/15 23:25:32 julian Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -522,6 +522,7 @@ rt_xaddrs(cp, cplim, rtinfo)
|
||||
for (i = 0; i < RTAX_MAX; i++) {
|
||||
if ((rtinfo->rti_addrs & (1 << i)) == 0)
|
||||
continue;
|
||||
sa = (struct sockaddr *)cp;
|
||||
/*
|
||||
* It won't fit. Pretend it doesn't exist.
|
||||
* Would return EINVAL if not void
|
||||
@ -536,7 +537,7 @@ rt_xaddrs(cp, cplim, rtinfo)
|
||||
*/
|
||||
if (sa->sa_len == 0)
|
||||
return;
|
||||
rtinfo->rti_info[i] = sa = (struct sockaddr *)cp;
|
||||
rtinfo->rti_info[i] = sa;
|
||||
ADVANCE(cp, sa);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user