]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_client: Save 65 .text bytes with -Os
authorVolker Lendecke <vl@samba.org>
Tue, 3 Aug 2021 06:43:57 +0000 (08:43 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 6 Aug 2021 17:22:30 +0000 (17:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c

index 87a24e200edd439b72b40d6c73aeed6553f52936..0e2a667c2fd6f78a6009e7882f8698c6762f4d70 100644 (file)
@@ -394,7 +394,7 @@ static NTSTATUS cli_pipe_validate_current_pdu(TALLOC_CTX *mem_ctx,
                                                DATA_BLOB *reply_pdu)
 {
        const struct dcerpc_response *r = NULL;
-       DATA_BLOB tmp_stub = data_blob_null;
+       DATA_BLOB tmp_stub = { .data = NULL };
        NTSTATUS ret;
 
        /*
@@ -925,7 +925,7 @@ static void rpc_api_pipe_got_pdu(struct tevent_req *subreq)
        struct rpc_api_pipe_state *state = tevent_req_data(
                req, struct rpc_api_pipe_state);
        NTSTATUS status;
-       DATA_BLOB rdata = data_blob_null;
+       DATA_BLOB rdata = { .data = NULL };
 
        status = get_complete_frag_recv(subreq);
        TALLOC_FREE(subreq);
@@ -1136,7 +1136,7 @@ static NTSTATUS create_generic_auth_rpc_bind_req(struct rpc_pipe_client *cli,
                                                 bool *client_hdr_signing)
 {
        struct gensec_security *gensec_security;
-       DATA_BLOB null_blob = data_blob_null;
+       DATA_BLOB null_blob = { .data = NULL };
        NTSTATUS status;
 
        gensec_security = cli->auth->auth_ctx;
@@ -1230,8 +1230,8 @@ static NTSTATUS create_rpc_bind_req(TALLOC_CTX *mem_ctx,
                                    const struct ndr_syntax_id *transfer,
                                    DATA_BLOB *rpc_out)
 {
-       DATA_BLOB auth_token = data_blob_null;
-       DATA_BLOB auth_info = data_blob_null;
+       DATA_BLOB auth_token = { .data = NULL };
+       DATA_BLOB auth_info = { .data = NULL };
        NTSTATUS ret;
 
        if (auth->auth_type != DCERPC_AUTH_TYPE_NONE) {
@@ -1924,7 +1924,7 @@ static void rpc_pipe_bind_step_one_done(struct tevent_req *subreq)
        struct gensec_security *gensec_security;
        struct ncacn_packet *pkt = NULL;
        struct dcerpc_auth auth;
-       DATA_BLOB auth_token = data_blob_null;
+       DATA_BLOB auth_token = { .data = NULL };
        NTSTATUS status;
 
        status = rpc_api_pipe_recv(subreq, talloc_tos(), &pkt, NULL);
@@ -3509,7 +3509,7 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx,
        NTSTATUS status;
        struct pipe_auth_data *a;
        struct gensec_security *gensec_security;
-       DATA_BLOB sk = data_blob_null;
+       DATA_BLOB sk = { .data = NULL };
        bool make_dup = false;
 
        if (!session_key || !cli) {