From b70f23c2b581c5d455362ab37f4846de9a910055 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 Aug 2012 17:01:00 -0700 Subject: Correctly check for errors in strlower_m() returns. --- source3/modules/vfs_afsacl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/modules/vfs_afsacl.c') diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c index ab7ef30e6b..770f6a33f0 100644 --- a/source3/modules/vfs_afsacl.c +++ b/source3/modules/vfs_afsacl.c @@ -804,7 +804,9 @@ static bool nt_to_afs_acl(const char *filename, if (tmp == NULL) { return false; } - strlower_m(tmp); + if (!strlower_m(tmp)) { + return false; + } name = tmp; } -- cgit