summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-23 13:11:26 +0100
committerVolker Lendecke <vl@samba.org>2011-03-23 12:19:57 +0100
commite88b9df78bc00985974e68e46f7218d0828ed6f0 (patch)
tree81e230393e4dc434f43ca7a2de133442dc2c5b0c
parente6d76ba832d87e59a50a5c044ecba5a6dc611958 (diff)
downloadsamba-e88b9df78bc00985974e68e46f7218d0828ed6f0.tar.gz
samba-e88b9df78bc00985974e68e46f7218d0828ed6f0.tar.xz
samba-e88b9df78bc00985974e68e46f7218d0828ed6f0.zip
s3: Fix Coverity ID 2202, NULL_RETURNS
-rw-r--r--source3/utils/smbcacls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index c7b586a4c0f..2f5ae857b40 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1035,6 +1035,9 @@ static int inherit(struct cli_state *cli, const char *filename,
}
string_replace(parentname, '/', '\\');
parent = get_secdesc(cli,parentname);
+ if (parent == NULL) {
+ return EXIT_FAILED;
+ }
for (i=0;i<parent->dacl->num_aces;i++) {
struct security_ace *ace=&parent->dacl->aces[i];
/* Add inherited flag to all aces */