mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix dereference after NULL check.
CID: 1234607 Sponsored by: Nginx, Inc.
This commit is contained in:
parent
fef8cac0c4
commit
5b5477d762
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270999
@ -921,10 +921,11 @@ fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp)
|
||||
kp->ki_xstat = p->p_xstat;
|
||||
kp->ki_acflag = p->p_acflag;
|
||||
kp->ki_lock = p->p_lock;
|
||||
if (p->p_pptr)
|
||||
if (p->p_pptr) {
|
||||
kp->ki_ppid = proc_realparent(p)->p_pid;
|
||||
if (p->p_flag & P_TRACED)
|
||||
kp->ki_tracer = p->p_pptr->p_pid;
|
||||
if (p->p_flag & P_TRACED)
|
||||
kp->ki_tracer = p->p_pptr->p_pid;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user