I've just noticed the patch is reversed. It should be:
$ diff -u samba-3.2.3/source/libsmb/clilist.c.orig samba-3.2.3/source/libsmb/clilist.c --- samba-3.2.3/source/libsmb/clilist.c.orig 2008-08-27 12:23:20.000000000 +0100 +++ samba-3.2.3/source/libsmb/clilist.c 2008-11-16 18:22:03.399036086 +0000 @@ -417,7 +417,7 @@ }
SAFE_FREE(mask); - if (ff_searchcount > 0) { + if (ff_searchcount > 0 && finfo.name) { mask = SMB_STRDUP(finfo.name); } else { mask = SMB_STRDUP("");
Cheers Tomek
I've just noticed the patch is reversed. It should be:
$ diff -u samba-3. 2.3/source/ libsmb/ clilist. c.orig samba-3. 2.3/source/ libsmb/ clilist. c 2.3/source/ libsmb/ clilist. c.orig 2008-08-27 12:23:20.000000000 +0100 2.3/source/ libsmb/ clilist. c 2008-11-16 18:22:03.399036086 +0000
--- samba-3.
+++ samba-3.
@@ -417,7 +417,7 @@
}
SAFE_FREE(mask); finfo.name) ;
- if (ff_searchcount > 0) {
+ if (ff_searchcount > 0 && finfo.name) {
mask = SMB_STRDUP(
} else {
mask = SMB_STRDUP("");
Cheers
Tomek