From: deraadt Date: Fri, 18 Apr 1997 09:58:11 +0000 (+0000) Subject: avoid possible *NULL; fvdl X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af709a3e912a01f58c63404dbfa1bd2d2e3953d8;p=openbsd avoid possible *NULL; fvdl --- 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++;