]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Cleanup - ensure we initialize all stack variables to 'safe' values when...
authorNoel Power <noel.power@suse.com>
Fri, 4 Sep 2020 02:03:52 +0000 (19:03 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:39 +0000 (13:23 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cliconnect.c

index abfd18bfaf162b08d7781221270e67d25ae2f2fa..bdc709f3e017061bc1f21862d9e5813ff462e554 100644 (file)
@@ -2535,8 +2535,9 @@ static struct tevent_req *cli_connect_sock_send(
 {
        struct tevent_req *req, *subreq;
        struct cli_connect_sock_state *state;
-       struct sockaddr_storage *addrs;
-       unsigned i, num_addrs;
+       struct sockaddr_storage *addrs = NULL;
+       unsigned i;
+       unsigned num_addrs = 0;
        NTSTATUS status;
 
        req = tevent_req_create(mem_ctx, &state,