s3/security.c undefined value
authorWilliam Brown <william@blackhats.net.au>
Wed, 18 Apr 2018 23:39:33 +0000 (09:39 +1000)
committerAlexander Bokovoy <ab@samba.org>
Fri, 20 Apr 2018 16:18:25 +0000 (18:18 +0200)
s3/security.c had an NTSTATUS status that was undefined and with the configure
option --address-sanitizer this caused uninitialised value error.

Signed-off-by: William Brown <william@blackhats.net.au>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Fri Apr 20 18:18:25 CEST 2018 on sn-devel-144

source3/libgpo/gpext/security.c

index 29e7bb7c31ead6472a9133eaddfc5466891a44ae..b6b7ca08e62657838bb680a7dd6b20bb8b3aaa9d 100644 (file)
@@ -150,7 +150,7 @@ static NTSTATUS security_process_group_policy(TALLOC_CTX *mem_ctx,
                                              const struct GROUP_POLICY_OBJECT *deleted_gpo_list,
                                              const struct GROUP_POLICY_OBJECT *changed_gpo_list)
 {
-       NTSTATUS status;
+       NTSTATUS status = NT_STATUS_OK;
        char *unix_path = NULL;
        struct gp_inifile_context *ini_ctx = NULL;
        const struct GROUP_POLICY_OBJECT *gpo;