[SCM] Samba Shared Repository - branch master updated - 3878dad0c68884c941b1d6a428f21928014fbc3e

Jeremy Allison jra at samba.org
Mon Dec 8 22:25:46 GMT 2008


The branch, master has been updated
       via  3878dad0c68884c941b1d6a428f21928014fbc3e (commit)
      from  15c942657d4767663d2164a3089253f8dde8b413 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3878dad0c68884c941b1d6a428f21928014fbc3e
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Dec 8 14:24:38 2008 -0800

    Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/libsmb/clilist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 5091845..cebafc6 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("");


-- 
Samba Shared Repository


More information about the samba-cvs mailing list