diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-12-23 07:33:32 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-12-23 07:33:32 +0000 |
commit | 0861a5c19cae621d1d7bb2cb8367e14902f7ae63 (patch) | |
tree | 40547505c1168298a60cd19bcf58f041ab6d40f5 /sys | |
parent | f87f7d8216ab9bddcf5a8577c8ae78d0808777c1 (diff) | |
download | FreeBSD-src-0861a5c19cae621d1d7bb2cb8367e14902f7ae63.zip FreeBSD-src-0861a5c19cae621d1d7bb2cb8367e14902f7ae63.tar.gz |
Make sure we have a non-null proc pointer before referring to fields
off of it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_prf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 572e95c..efff7f8 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -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)) { |