git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fff1e1
)
Correct fix for unused variable return from ndr_decode. Use it :-).
author
Jeremy Allison
<jra@samba.org>
Tue, 26 Jan 2010 01:38:55 +0000
(17:38 -0800)
committer
Jeremy Allison
<jra@samba.org>
Tue, 26 Jan 2010 01:38:55 +0000
(17:38 -0800)
Jeremy.
source3/smbd/dosmode.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dosmode.c
b/source3/smbd/dosmode.c
index aaef09bc85cca8b5b78e7c400ff958d0b7d23dd2..e5d6bc32e855537a4b907c990ac82a431ba57011 100644
(file)
--- a/
source3/smbd/dosmode.c
+++ b/
source3/smbd/dosmode.c
@@
-264,6
+264,14
@@
static bool get_ea_dos_attribute(connection_struct *conn,
ndr_err = ndr_pull_struct_blob(&blob, talloc_tos(), NULL, &dosattrib,
(ndr_pull_flags_fn_t)ndr_pull_xattr_DOSATTRIB);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ DEBUG(1,("get_ea_dos_attributes: bad ndr decode "
+ "from EA on file %s: Error = %s\n",
+ smb_fname_str_dbg(smb_fname),
+ ndr_errstr(ndr_err)));
+ return false;
+ }
+
DEBUG(10,("get_ea_dos_attribute: %s attr = %s\n",
smb_fname_str_dbg(smb_fname), dosattrib.attrib_hex));