s3:sharesec: return an error if get_share_security() returns NULL
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Jul 2011 10:31:41 +0000 (12:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jul 2011 13:40:23 +0000 (15:40 +0200)
This indicates an error, as it uses get_share_security_default()
if no security descriptor is configured.

Jeremy, please check.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul  6 15:40:23 CEST 2011 on sn-devel-104

source3/lib/sharesec.c

index 66e3401771625a54b4b0d10f216652ea8e0f674a..2f625351b22a3f55948ae2fc49027eda18e1bec2 100644 (file)
@@ -426,7 +426,7 @@ bool share_access_check(const struct security_token *token,
                if (pgranted != NULL) {
                        *pgranted = desired_access;
                }
-               return True;
+               return false;
        }
 
        status = se_access_check(psd, token, desired_access, &granted);