samr4: Fix Coverity ID 1499378
authorVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 13:36:20 +0000 (14:36 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 21 Nov 2023 17:34:36 +0000 (17:34 +0000)
Coverity isn't smart enough to see this is initialized. As it's good
practice to initialize vars, just do it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/samr/dcesrv_samr.c

index cb69f97976f3992afd2240b98796b50d3bc6cdb6..841c764031f870c83a393347d260b4c177b0a025 100644 (file)
@@ -5260,8 +5260,8 @@ static NTSTATUS dcesrv_samr_ValidatePassword(struct dcesrv_call_state *dce_call,
                                             TALLOC_CTX *mem_ctx,
                                             struct samr_ValidatePassword *r)
 {
-       struct samr_GetDomPwInfo r2;
-       struct samr_PwInfo pwInfo;
+       struct samr_GetDomPwInfo r2 = {};
+       struct samr_PwInfo pwInfo = {};
        const char *account = NULL;
        DATA_BLOB password;
        enum samr_ValidationStatus res;