summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-08-08 15:49:34 -0700
committerJeremy Allison <jra@samba.org>2012-08-09 12:07:32 -0700
commitc13887defc4c05b6b87f8f40ae0cf981a497f443 (patch)
tree45750aebc286cdbf0e9457c844517096e74d9163 /source3/modules
parent526e875cec15761099438e17df3f56bc2bd5b761 (diff)
downloadsamba-c13887defc4c05b6b87f8f40ae0cf981a497f443.tar.gz
samba-c13887defc4c05b6b87f8f40ae0cf981a497f443.tar.bz2
samba-c13887defc4c05b6b87f8f40ae0cf981a497f443.zip
Check error returns on strnorm().
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_prealloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index f67cefbe2f..4ba27a6c85 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/modules/vfs_prealloc.c
@@ -139,7 +139,9 @@ static int prealloc_open(vfs_handle_struct* handle,
if (dot && *++dot) {
if (strlen(dot) < sizeof(fext)) {
strncpy(fext, dot, sizeof(fext));
- strnorm(fext, CASE_LOWER);
+ if (!strnorm(fext, CASE_LOWER)) {
+ goto normal_open;
+ }
}
}