netchan: zero out request to ensure correct gob decoding. Gob decoding does not overwrite fields which are zero in the encoder. Fixes issue 1174.
netchan: zero out request to ensure correct gob decoding.
Gob decoding does not overwrite fields which are zero
in the encoder.
Fixes issue 1174.

R=r, r2
CC=golang-dev
http://codereview.appspot.com/2337044

Committer: Rob Pike <4dc7c9ec434ed06502767136789763ec11d2c4b7@golang.org>

Triskite/willstone-goclone,mhennings/marcohennings-go,d0f/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,scirelli/scirelli-go,sanjosh/sanjos100-tipc,bryanxu/go-zh,Triskite/willstone-goclone,scirelli/scirelli-go,webfd/go-zh,bryanxu/go-zh,webfd/go-zh,scirelli/scirelli-go,scirelli/scirelli-go,bryanxu/go-zh,npe9/noahevans-go9,npe9/noahevans-go9,d0f/go-zh,bryanxu/go-zh,d0f/go-zh,d0f/go-zh,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,scirelli/scirelli-go,npe9/noahevans-go9,rdp/rogerpack2005-golang,bryanxu/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,npe9/noahevans-go9,npe9/noahevans-go9,webfd/go-zh,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,d0f/go-zh,rdp/rogerpack2005-golang,d0f/go-zh,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,npe9/noahevans-go9,rdp/rogerpack2005-golang,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,webfd/go-zh,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,scirelli/scirelli-go,rdp/rogerpack2005-golang,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,mhennings/marcohennings-go,mhennings/marcohennings-go,webfd/go-zh,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,Triskite/willstone-goclone,npe9/noahevans-go9,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,bryanxu/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,rdp/rogerpack2005-golang,Triskite/willstone-goclone,Triskite/willstone-goclone,mhennings/marcohennings-go,npe9/noahevans-go9,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,webfd/go-zh