git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5822449
)
lib:mscat: Fix may be used uninitialized warnings
author
Andreas Schneider
<asn@samba.org>
Fri, 18 Jan 2019 12:11:38 +0000
(13:11 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Sat, 19 Jan 2019 11:24:18 +0000
(12:24 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/mscat/mscat_pkcs7.c
patch
|
blob
|
history
diff --git
a/lib/mscat/mscat_pkcs7.c
b/lib/mscat/mscat_pkcs7.c
index 55944232205f58b394628c940dc7cbc88710a363..d606a86f095be16fd0bfafed21bcf5b25a47e526 100644
(file)
--- 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;