mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Make sure we have a non-null proc pointer before referring to fields
off of it.
This commit is contained in:
parent
f4084c4526
commit
661f2768f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70301
@ -139,7 +139,7 @@ tprintf(struct proc *p, int pri, const char *fmt, ...)
|
||||
|
||||
if (pri != -1)
|
||||
flags |= TOLOG;
|
||||
if (p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) {
|
||||
if (p && p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) {
|
||||
SESSHOLD(p->p_session);
|
||||
shld++;
|
||||
if (ttycheckoutq(p->p_session->s_ttyp, 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user