]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Directly initialize variables
authorVolker Lendecke <vl@samba.org>
Wed, 24 Dec 2025 10:16:46 +0000 (11:16 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 7 Jan 2026 09:57:40 +0000 (09:57 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/librpc/rpc/dcerpc_helpers.c

index 5310e4a6612995cb2c85da92288759cbf095d601..3594bda9ba023244643681bbd2e912d699981ddc 100644 (file)
@@ -334,8 +334,8 @@ NTSTATUS dcerpc_add_auth_footer(struct pipe_auth_data *auth,
 {
        struct gensec_security *gensec_security;
        const char pad[DCERPC_AUTH_PAD_ALIGNMENT] = { 0, };
-       DATA_BLOB auth_info;
-       DATA_BLOB auth_blob;
+       DATA_BLOB auth_info = {};
+       DATA_BLOB auth_blob = {};
        NTSTATUS status;
 
        if (auth->auth_type == DCERPC_AUTH_TYPE_NONE) {
@@ -354,7 +354,7 @@ NTSTATUS dcerpc_add_auth_footer(struct pipe_auth_data *auth,
        /* marshall the dcerpc_auth with an actually empty auth_blob.
         * This is needed because the ntmlssp signature includes the
         * auth header. We will append the actual blob later. */
-       auth_blob = data_blob_null;
+
        status = dcerpc_push_dcerpc_auth(rpc_out->data,
                                         auth->auth_type,
                                         auth->auth_level,