diff options
author | SATOH Fumiyasu <fumiyas@osstech.co.jp> | 2010-03-10 12:15:44 +0900 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-03-10 16:11:26 -0800 |
commit | c1fb657afc1184d192e0fbca05a8145e2383ffe7 (patch) | |
tree | 96ba94990b99621266fa381c4f8952f872501f97 | |
parent | 3fd5ac63443717fd596546602d2e5477923f8f3d (diff) | |
download | samba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.tar.gz samba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.tar.bz2 samba-c1fb657afc1184d192e0fbca05a8145e2383ffe7.zip |
vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"
-rw-r--r-- | source3/modules/vfs_netatalk.c | 2 |
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 ++) { |