summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifsinfo.c
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2011-08-01 16:40:22 -0700
committerJeremy Allison <jra@samba.org>2011-08-02 02:58:26 +0200
commit11c2d3717c672386538c6490a860b0cb66b8111c (patch)
treef92821d6f0d1b320cb4665a18a9bcf4fa193c0c0 /source3/libsmb/clifsinfo.c
parent6eb496cf45a193d0945a3b6a84af693c6f44d7b7 (diff)
downloadsamba-11c2d3717c672386538c6490a860b0cb66b8111c.tar.gz
samba-11c2d3717c672386538c6490a860b0cb66b8111c.tar.bz2
samba-11c2d3717c672386538c6490a860b0cb66b8111c.zip
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
Diffstat (limited to 'source3/libsmb/clifsinfo.c')
-rw-r--r--source3/libsmb/clifsinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c
index b0a8fdd9fd..5f8e551a56 100644
--- a/source3/libsmb/clifsinfo.c
+++ b/source3/libsmb/clifsinfo.c
@@ -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;
}