summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-10-08 23:47:44 +0000
committerjulian <julian@FreeBSD.org>2001-10-08 23:47:44 +0000
commit5596973a17716b0bb737e0838e8052277f6f8151 (patch)
tree351e6a7bd69b8e1e086f1c6b1c3069a00a689498 /sys
parentfbdcb5086af6cff59bcb011f0566560691cf2c2e (diff)
downloadFreeBSD-src-5596973a17716b0bb737e0838e8052277f6f8151.zip
FreeBSD-src-5596973a17716b0bb737e0838e8052277f6f8151.tar.gz
Don't dereference td if it's NULL.
Submitted by: Alexander N. Kabaev <ak03@gte.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/nfsclient/nfs_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c
index 38c7783..05c83f2 100644
--- a/sys/nfsclient/nfs_socket.c
+++ b/sys/nfsclient/nfs_socket.c
@@ -1364,6 +1364,7 @@ static int
nfs_msg(struct thread *td, char *server, char *msg)
{
- tprintf(td->td_proc, LOG_INFO, "nfs server %s: %s\n", server, msg);
+ tprintf(td ? td->td_proc, NULL, LOG_INFO,
+ "nfs server %s: %s\n", server, msg);
return (0);
}
OpenPOWER on IntegriCloud