summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-12-23 07:33:32 +0000
committermjacob <mjacob@FreeBSD.org>2000-12-23 07:33:32 +0000
commit0861a5c19cae621d1d7bb2cb8367e14902f7ae63 (patch)
tree40547505c1168298a60cd19bcf58f041ab6d40f5 /sys
parentf87f7d8216ab9bddcf5a8577c8ae78d0808777c1 (diff)
downloadFreeBSD-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.c2
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)) {
OpenPOWER on IntegriCloud