diff options
author | Andreas Schneider <asn@samba.org> | 2019-01-18 13:11:38 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-19 12:24:18 +0100 |
commit | f3c30b2f8cd39b9eaf5ff7ba0d3c96669e8ade37 (patch) | |
tree | 02cfe2568e1f5075a08f92dbd01d33f000787571 /lib/mscat | |
parent | 5822449a7340f53987ce4c04851652427f5b49e8 (diff) | |
download | samba-f3c30b2f8cd39b9eaf5ff7ba0d3c96669e8ade37.tar.gz |
lib:mscat: Fix may be used uninitialized warnings
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/mscat')
-rw-r--r-- | lib/mscat/mscat_pkcs7.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mscat/mscat_pkcs7.c b/lib/mscat/mscat_pkcs7.c index 55944232205..d606a86f095 100644 --- a/lib/mscat/mscat_pkcs7.c +++ b/lib/mscat/mscat_pkcs7.c @@ -121,7 +121,9 @@ int mscat_pkcs7_import_catfile(struct mscat_pkcs7 *mp7, gnutls_datum_t mscat_data = { .size = 0, }; - DATA_BLOB blob; + DATA_BLOB blob = { + .length = 0, + }; int rc; tmp_ctx = talloc_new(mp7); @@ -164,7 +166,9 @@ int mscat_pkcs7_verify(struct mscat_pkcs7 *mp7, TALLOC_CTX *tmp_ctx = NULL; gnutls_x509_trust_list_t tl = NULL; gnutls_datum_t ca_data; - DATA_BLOB blob; + DATA_BLOB blob = { + .length = 0, + }; uint32_t flags = 0; const char *oid; int count; |