From: William Brown Date: Wed, 18 Apr 2018 23:39:33 +0000 (+1000) Subject: s3/security.c undefined value X-Git-Tag: ldb-1.4.0~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a18b51000ef2ab5c9c111490394ce0e2425edee2;p=thirdparty%2Fsamba.git s3/security.c undefined value 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 Reviewed-by: Alexander Bokovoy Reviewed-by: Simo Sorce Autobuild-User(master): Alexander Bokovoy Autobuild-Date(master): Fri Apr 20 18:18:25 CEST 2018 on sn-devel-144 --- diff --git a/source3/libgpo/gpext/security.c b/source3/libgpo/gpext/security.c index 29e7bb7c31e..b6b7ca08e62 100644 --- a/source3/libgpo/gpext/security.c +++ b/source3/libgpo/gpext/security.c @@ -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;