From 1dad1e0115f2db1492c9133e5ca55ab2c688543c Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Mon, 1 Aug 2011 16:40:22 -0700 Subject: [PATCH] Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri Fix null deref. (cherry picked from commit cf0c36ab9a5129878b92a52d22aa814eaa737a4c) --- source3/libsmb/clifsinfo.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c index 94568c9..95973bb 100644 --- a/source3/libsmb/clifsinfo.c +++ b/source3/libsmb/clifsinfo.c @@ -472,6 +472,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); @@ -484,7 +485,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; } -- 1.7.0.4