From 571abcb9bcb7ffec712af93ac212e1e5374d2595 Mon Sep 17 00:00:00 2001 From: SASAJIMA Toshihiro Date: Tue, 12 Jan 2010 21:43:23 -0800 Subject: [PATCH] Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV) (cherry picked from commit ca847952054f5bbde1d40ad4260589b6fcc9721d) --- source3/modules/vfs_cap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index e26d29d..954e6fb 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -600,12 +600,13 @@ static char *capdecode(TALLOC_CTX *ctx, const char *from) size_t len = 0; for (p1 = from; *p1; len++) { - if (is_hex(from)) { + if (is_hex(p1)) { p1 += 3; } else { p1++; } } + len++; to = TALLOC_ARRAY(ctx, char, len); if (!to) { -- 1.6.3.3