diff options
author | Andreas Schneider <asn@samba.org> | 2018-09-26 14:30:32 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-10-19 23:11:26 +0200 |
commit | f040d660c0312dddbf03a9a6762044425d82fcb6 (patch) | |
tree | dc951dbd68ced6c4619bd7a027df65549466f257 /librpc | |
parent | 2679dd0fd87903822f7ed29cfb88834838e69346 (diff) | |
download | samba-f040d660c0312dddbf03a9a6762044425d82fcb6.tar.gz |
ndr: Init variables of GUID_from_data_blob()
Found by covscan.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/uuid.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c index 53540c7ddc8..6c5082190ca 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -59,11 +59,12 @@ _PUBLIC_ NTSTATUS GUID_from_ndr_blob(const DATA_BLOB *b, struct GUID *guid) _PUBLIC_ NTSTATUS GUID_from_data_blob(const DATA_BLOB *s, struct GUID *guid) { NTSTATUS status = NT_STATUS_INVALID_PARAMETER; - uint32_t time_low; - uint32_t time_mid, time_hi_and_version; - uint32_t clock_seq[2]; - uint32_t node[6]; - uint8_t buf16[16]; + uint32_t time_low = 0; + uint32_t time_mid = 0; + uint32_t time_hi_and_version = 0; + uint32_t clock_seq[2] = {0}; + uint32_t node[6] = {0}; + uint8_t buf16[16] = {0}; DATA_BLOB blob16 = data_blob_const(buf16, sizeof(buf16)); int i; |