summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-12-08 14:24:38 -0800
committerJeremy Allison <jra@samba.org>2008-12-08 14:24:38 -0800
commit3878dad0c68884c941b1d6a428f21928014fbc3e (patch)
tree0f181bc37f358079223bcdb43ccee0c14b2ee990 /source3
parent15c942657d4767663d2164a3089253f8dde8b413 (diff)
downloadsamba-3878dad0c68884c941b1d6a428f21928014fbc3e.tar.gz
samba-3878dad0c68884c941b1d6a428f21928014fbc3e.tar.bz2
samba-3878dad0c68884c941b1d6a428f21928014fbc3e.zip
Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clilist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 50918458b0..cebafc6919 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -417,7 +417,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
}
SAFE_FREE(mask);
- if (ff_searchcount > 0) {
+ if (ff_searchcount > 0 && ff_eos == 0 && finfo.name) {
mask = SMB_STRDUP(finfo.name);
} else {
mask = SMB_STRDUP("");