summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_serv.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-07-15 22:16:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-07-15 22:16:43 +0000
commit5e8589374c930031aaf4735e952691c378a260b8 (patch)
tree158957edef63bb7cac587a2b4370754b04559bae /sys/nfs/nfs_serv.c
parenta763f70dd81e802e555963fb255d7538e879b607 (diff)
m_freem() can handle NULL, do not check for this condition beforehands.
ok stsp mpi
Diffstat (limited to 'sys/nfs/nfs_serv.c')
-rw-r--r--sys/nfs/nfs_serv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 5649c1866a8..57dd841a350 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.104 2015/06/11 08:39:51 blambert Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.105 2015/07/15 22:16:42 deraadt Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -477,7 +477,7 @@ nfsrv_readlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
out:
getret = VOP_GETATTR(vp, &attr, cred, procp);
vput(vp);
- if (error && mp)
+ if (error)
m_freem(mp);
nfsm_reply(NFSX_POSTOPATTR(info.nmi_v3) + NFSX_UNSIGNED);
if (info.nmi_v3) {