Don't core dump when given "-i -a". Problem caused by a mistaken
dereference of a kernel-pointer in userland. PR: 26168 Submitted by: Peter Pentchev <roam@orbitel.bg>
This commit is contained in:
parent
6cc546f248
commit
0b23654bb3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75024
@ -448,9 +448,10 @@ intpr(interval, ifnetaddr, pfunc)
|
||||
const char *fmt;
|
||||
|
||||
TAILQ_FOREACH(multiaddr, &ifnet.if_multiaddrs, ifma_link) {
|
||||
if (kread(*(u_long *)multiaddr, (char *)&ifma,
|
||||
if (kread((u_long)multiaddr, (char *)&ifma,
|
||||
sizeof ifma))
|
||||
break;
|
||||
multiaddr = &ifma;
|
||||
if (kread((u_long)ifma.ifma_addr, (char *)&msa,
|
||||
sizeof msa))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user