1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri

Fix null deref.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug  2 02:58:26 CEST 2011 on sn-devel-104
This commit is contained in:
Alban Browaeys
2011-08-01 16:40:22 -07:00
committed by Jeremy Allison
parent 6eb496cf45
commit 11c2d3717c

View File

@ -483,6 +483,7 @@ NTSTATUS cli_get_posix_fs_info(struct cli_state *cli,
uint16 setup[1];
uint8_t param[2];
uint8_t *rdata = NULL;
uint32_t rdata_count;
NTSTATUS status;
SSVAL(setup, 0, TRANSACT2_QFSINFO);
@ -495,7 +496,7 @@ NTSTATUS cli_get_posix_fs_info(struct cli_state *cli,
NULL,
NULL, 0, NULL, /* rsetup */
NULL, 0, NULL, /* rparam */
&rdata, 56, NULL);
&rdata, 56, &rdata_count);
if (!NT_STATUS_IS_OK(status)) {
return status;
}