git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fd5ac6
)
vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"
author
SATOH Fumiyasu
<fumiyas@osstech.co.jp>
Wed, 10 Mar 2010 03:15:44 +0000
(12:15 +0900)
committer
Jeremy Allison
<jra@samba.org>
Thu, 11 Mar 2010 00:11:26 +0000
(16:11 -0800)
source3/modules/vfs_netatalk.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_netatalk.c
b/source3/modules/vfs_netatalk.c
index 68f6a3108342b69f560710c9aea24246dd600604..d5a85b33903c1b7705a92bef8bb722775e917830 100644
(file)
--- 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 ++) {