patch-2.2.14 linux/net/sunrpc/clnt.c
Next file: linux/net/sunrpc/svc.c
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Tue Jan 4 10:12:27 2000
- Orig file:
v2.2.13/linux/net/sunrpc/clnt.c
- Orig date:
Tue Oct 6 09:39:44 1998
diff -u --recursive --new-file v2.2.13/linux/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -467,6 +467,9 @@
return;
}
+ /* Zero buffer so we have automatic zero-padding of opaque & string */
+ memset(task->tk_buffer, 0, bufsiz);
+
/* Encode header and provided arguments */
encode = rpcproc_encode(clnt, task->tk_proc);
if (!(p = call_header(task))) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)