]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Make sure num_protocols is initialized
authorAndreas Schneider <asn@samba.org>
Thu, 10 Jun 2021 06:53:19 +0000 (08:53 +0200)
committerNoel Power <npower@samba.org>
Thu, 10 Jun 2021 10:31:33 +0000 (10:31 +0000)
Found by covscan.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Noel Power <npower@samba.org>
librpc/rpc/binding.c

index 6588f43cc9d2587a00f546729de1c5785d2ab0bf..7a2dcd472eabcebedb3a66683aea3dba3c50bb10 100644 (file)
@@ -1430,7 +1430,7 @@ _PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx,
                                             struct epm_tower *tower)
 {
        const enum epm_protocol *protseq = NULL;
-       size_t i, num_protocols;
+       size_t i, num_protocols = 0;
        struct ndr_syntax_id abstract_syntax;
        NTSTATUS status;