diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcacls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index c7b586a4c0..2f5ae857b4 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 */ |