From af709a3e912a01f58c63404dbfa1bd2d2e3953d8 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 18 Apr 1997 09:58:11 +0000 Subject: [PATCH] avoid possible *NULL; fvdl --- sys/nfs/nfs_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index c88356871a8..aa86db8c7ac 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.8 1996/12/24 20:14:29 dm Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.9 1997/04/18 09:58:11 deraadt Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1216,7 +1216,8 @@ nfs_rephead(siz, nd, slp, err, cache, frev, mrq, mbp, bposp) } } *mrq = mreq; - *mbp = mb; + if (mrq != NULL)n + *mbp = mb; *bposp = bpos; if (err != 0 && err != NFSERR_RETVOID) nfsstats.srvrpc_errs++; -- 2.20.1