1
0
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:
Tim Potter 2004-10-07 03:55:39 +00:00 committed by Gerald (Jerry) Carter
parent 8836621694
commit 588de0d4a8

View File

@ -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);