From 4b9386e5fdbc75f6a9215d1a010698a112f34386 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sat, 9 Feb 2013 12:07:28 +0100 Subject: [PATCH] afpd/acls: fix dereference before null check error Reported by Coverity as CID #968569. --- etc/afpd/acls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/afpd/acls.c b/etc/afpd/acls.c index 55a1e3ae..56ffeea9 100644 --- a/etc/afpd/acls.c +++ b/etc/afpd/acls.c @@ -1363,6 +1363,8 @@ static int check_acl_access(const AFPObj *obj, LOG(log_maxdebug, logtype_afpd, "check_acl_access(dir: \"%s\", path: \"%s\", curdir: \"%s\", 0x%08x)", cfrombstr(dir->d_fullpath), path, getcwdpath(), requested_rights); + AFP_ASSERT(vol); + /* This check is not used anymore, as OS X Server seems to be ignoring too */ #if 0 /* Get uid or gid from UUID */ -- 2.39.2