Comment 11 for bug 284572

Revision history for this message
Tomek Bury (tomek-bury) wrote :

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