mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:19:59 -04:00
Merge branch '2998-cid-340918-uninitialized-variables-uninit' into 'main'
Resolve "CID 340918: Uninitialized variables (UNINIT)" Closes #2998 See merge request isc-projects/bind9!5556
This commit is contained in:
commit
76375797b5
1 changed files with 1 additions and 2 deletions
|
|
@ -790,7 +790,7 @@ err:
|
|||
static isc_result_t
|
||||
opensslrsa_tofile(const dst_key_t *key, const char *directory) {
|
||||
isc_result_t ret;
|
||||
dst_private_t priv;
|
||||
dst_private_t priv = { 0 };
|
||||
unsigned char *bufs[8] = { NULL };
|
||||
unsigned short i = 0;
|
||||
EVP_PKEY *pkey;
|
||||
|
|
@ -810,7 +810,6 @@ opensslrsa_tofile(const dst_key_t *key, const char *directory) {
|
|||
}
|
||||
|
||||
if (key->external) {
|
||||
priv.nelements = 0;
|
||||
return (dst__privstruct_writefile(key, &priv, directory));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue