git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eb496c
)
Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share via an uri
author
Alban Browaeys
<prahal@yahoo.com>
Mon, 1 Aug 2011 23:40:22 +0000
(16:40 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 2 Aug 2011 00:58:26 +0000
(
02:58
+0200)
Fix null deref.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug 2 02:58:26 CEST 2011 on sn-devel-104
source3/libsmb/clifsinfo.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifsinfo.c
b/source3/libsmb/clifsinfo.c
index b0a8fdd9fd9a43daee27121b01eaddfe017381be..5f8e551a56e450d18b7cd67192455b26d75bf334 100644
(file)
--- 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;
}