summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>2010-03-10 12:15:44 +0900
committerJeremy Allison <jra@samba.org>2010-03-10 16:11:26 -0800
commitc1fb657afc1184d192e0fbca05a8145e2383ffe7 (patch)
tree96ba94990b99621266fa381c4f8952f872501f97 /source3/modules
parent3fd5ac63443717fd596546602d2e5477923f8f3d (diff)
downloadsamba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.tar.gz
samba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.tar.bz2
samba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.zip
vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_netatalk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c
index 68f6a31083..d5a85b3390 100644
--- a/source3/modules/vfs_netatalk.c
+++ b/source3/modules/vfs_netatalk.c
@@ -131,7 +131,7 @@ static void atalk_add_to_list(name_compare_entry **list)
}
}
- if (!(new_list = SMB_CALLOC_ARRAY(name_compare_entry, (count == 0 ? 1 : count + 1))))
+ if (!(new_list = SMB_CALLOC_ARRAY(name_compare_entry, count + 2)))
return;
for (i = 0; i < count; i ++) {