diff options
author | Andreas Schneider <asn@samba.org> | 2021-06-10 08:53:19 +0200 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2021-06-10 10:31:33 +0000 |
commit | d6eff9c413fe4789a061fdde7105d0553a419f59 (patch) | |
tree | 532175d458beb15caca896b5bd4c09ca7b96a5fa /librpc | |
parent | 9b7bef7f8761b05e946185b9262dd089d1eeed15 (diff) | |
download | samba-d6eff9c413fe4789a061fdde7105d0553a419f59.tar.gz |
librpc: Make sure num_protocols is initialized
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>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 6588f43cc9d..7a2dcd472ea 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -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; |