diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-08 07:37:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:54 -0500 |
commit | 1b45214f3186e3be045d09083c27017e67017cdd (patch) | |
tree | 1c5346a91f7fb020520b123762ee280a382df0cb /source4/ntvfs | |
parent | 0f215e99479cf75392a3a9f4ab7c3b2ef976f97d (diff) | |
download | samba-1b45214f3186e3be045d09083c27017e67017cdd.tar.gz samba-1b45214f3186e3be045d09083c27017e67017cdd.tar.xz samba-1b45214f3186e3be045d09083c27017e67017cdd.zip |
r16868: init some uninitialized values
(found by valgrind)
metze
(This used to be commit 1bb60b5be48fab7d84594283f58d2bc04c474b0c)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/ntvfs_generic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c index 8c48e52b5c..e0e69b25e1 100644 --- a/source4/ntvfs/ntvfs_generic.c +++ b/source4/ntvfs/ntvfs_generic.c @@ -1176,6 +1176,7 @@ static NTSTATUS ntvfs_map_read_finish(struct ntvfs_module_context *ntvfs, break; case RAW_READ_SMB2: rd->smb2.out.data.length= rd2->generic.out.nread; + rd->smb2.out.unknown1 = 0; break; default: return NT_STATUS_INVALID_LEVEL; @@ -1307,11 +1308,13 @@ _PUBLIC_ NTSTATUS ntvfs_map_close(struct ntvfs_module_context *ntvfs, case RAW_CLOSE_SPLCLOSE: cl2->generic.level = RAW_CLOSE_CLOSE; cl2->generic.in.file.ntvfs = cl->splclose.in.file.ntvfs; + cl2->generic.in.write_time = 0; break; case RAW_CLOSE_SMB2: cl2->generic.level = RAW_CLOSE_CLOSE; cl2->generic.in.file.ntvfs = cl->smb2.in.file.ntvfs; + cl2->generic.in.write_time = 0; /* SMB2 Close has output parameter, but we just zero them */ ZERO_STRUCT(cl->smb2.out); break; |