Skip to contentSkip to conversation

kNFSd - 5 of 8 - Make sure unused bits of NFSv4 xfr buffered are zero..

PATCH New NeilBrown 1 participant 1 message Jun 17, 2003

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 5 of 8 - Make sure unused bits of NFSv4 xfr buffered are zero..

### Comments for ChangeSet

----------- Diffstat output ------------

 ./fs/nfsd/nfs4xdr.c |    1 +
 1 files changed, 1 insertion(+)
fs/nfsd/nfs4xdr.c renamed from fs/nfsd/nfs4xdr.c~current~ +1 -0
diff ./fs/nfsd/nfs4xdr.c~current~ ./fs/nfsd/nfs4xdr.c
@@ -1039,6 +1039,7 @@ nfsd4_decode_compound(struct nfsd4_compo
 	*p++ = htonl((u32)(n));					\
 } while (0)
 #define WRITEMEM(ptr,nbytes)     do {				\
+	*(p + XDR_QUADLEN(nbytes) -1) = 0;                      \
 	memcpy(p, ptr, nbytes);					\
 	p += XDR_QUADLEN(nbytes);				\
 } while (0)

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs