mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r2834: Netapps can return NT_STATUS_ACCESS_DENIED when trying to return the
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 commit is contained in:
parent
8836621694
commit
588de0d4a8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user