diff options
author | Jeremy Allison <jra@samba.org> | 2008-12-08 14:24:38 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-12-08 14:24:38 -0800 |
commit | 3878dad0c68884c941b1d6a428f21928014fbc3e (patch) | |
tree | 0f181bc37f358079223bcdb43ccee0c14b2ee990 | |
parent | 15c942657d4767663d2164a3089253f8dde8b413 (diff) | |
download | samba-3878dad0c68884c941b1d6a428f21928014fbc3e.tar.gz samba-3878dad0c68884c941b1d6a428f21928014fbc3e.tar.bz2 samba-3878dad0c68884c941b1d6a428f21928014fbc3e.zip |
Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
Jeremy.
-rw-r--r-- | source3/libsmb/clilist.c | 2 |
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(""); |