]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_server: Remove a leftover from before str_list_add_printf()
authorVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2025 16:57:37 +0000 (17:57 +0100)
committerMartin Schwenke <martins@samba.org>
Sat, 14 Jun 2025 08:46:34 +0000 (08:46 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/rpc_server/rpc_host.c

index 5232c5f17fae2176dcc7edbc2367a56f68e7a46f..b88cdf48cc33415e47bbcdc6a208eb92e6fb7694 100644 (file)
@@ -268,11 +268,6 @@ static struct tevent_req *rpc_server_get_endpoints_send(
                return tevent_req_post(req, ev);
        }
 
-       state->argl = talloc_array(state, char *, 4);
-       if (tevent_req_nomem(state->argl, req)) {
-               return tevent_req_post(req, ev);
-       }
-
        state->argl = str_list_make_empty(state);
        str_list_add_printf(&state->argl, "%s", rpc_server_exe);
        str_list_add_printf(&state->argl, "--list-interfaces");