Browse files

NFS server: Zero not-fully-initialized UIO structure.

From: OpenBSD nfs_serv.c 1.90
  • Loading branch information...
1 parent a084b5c commit e020caea57ae4096e35c573c1380ceab9d94ac8a @vsrinivas vsrinivas committed Dec 24, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 sys/vfs/nfs/nfs_serv.c
View
2 sys/vfs/nfs/nfs_serv.c
@@ -700,6 +700,8 @@ nfsrv_readlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
info.dpos = nfsd->nd_dpos;
info.v3 = (nfsd->nd_flag & ND_NFSV3);
+ bzero(&io, sizeof(struct uio));
+
nfsdbprintf(("%s %d\n", __FILE__, __LINE__));
#ifndef nolint
mp2 = NULL;

0 comments on commit e020cae

Please sign in to comment.