Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

From: OpenBSD nfs_serv.c 1.90
  • Loading branch information...
commit e020caea57ae4096e35c573c1380ceab9d94ac8a 1 parent a084b5c
Venkatesh Srinivas authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  sys/vfs/nfs/nfs_serv.c
2  sys/vfs/nfs/nfs_serv.c
@@ -700,6 +700,8 @@ nfsrv_readlink(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
700 700
 	info.dpos = nfsd->nd_dpos;
701 701
 	info.v3 = (nfsd->nd_flag & ND_NFSV3);
702 702
 
  703
+	bzero(&io, sizeof(struct uio));
  704
+
703 705
 	nfsdbprintf(("%s %d\n", __FILE__, __LINE__));
704 706
 #ifndef nolint
705 707
 	mp2 = NULL;

0 notes on commit e020cae

Please sign in to comment.
Something went wrong with that request. Please try again.