git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
132879b
)
r2834: Netapps can return NT_STATUS_ACCESS_DENIED when trying to return the
author
Tim Potter
<tpot@samba.org>
Thu, 7 Oct 2004 03:55:39 +0000
(
03:55
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:52:54 +0000
(10:52 -0500)
security descriptor for a file. Return an error in this case instead
of panicing trying to unpack a zero length buffer. Found by Brett
Funderburg.
(This used to be commit
588de0d4a84a5228d0f99f743ad327ad3b70ead1
)
source3/libsmb/clisecdesc.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clisecdesc.c
b/source3/libsmb/clisecdesc.c
index 2989966f4dee7ddb7b8d96c45737017b76828b3f..b79ea9d14ba602cc82e4a9352cde205eb6bdb68f 100644
(file)
--- a/
source3/libsmb/clisecdesc.c
+++ b/
source3/libsmb/clisecdesc.c
@@
-53,6
+53,9
@@
SEC_DESC *cli_query_secdesc(struct cli_state *cli, int fnum,
goto cleanup;
}
+ if (cli_is_error(cli))
+ goto cleanup;
+
prs_init(&pd, rdata_count, mem_ctx, UNMARSHALL);
prs_copy_data_in(&pd, rdata, rdata_count);
prs_set_offset(&pd,0);