mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 11:32:01 -05:00
missing NULL initialization
This commit is contained in:
parent
c50936eb40
commit
e492431068
1 changed files with 3 additions and 5 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: tsig.c,v 1.59 2000/05/19 00:20:54 bwelling Exp $
|
||||
* $Id: tsig.c,v 1.60 2000/05/19 00:29:00 bwelling Exp $
|
||||
* Principal Author: Brian Wellington
|
||||
*/
|
||||
|
||||
|
|
@ -117,6 +117,8 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||
isc_buffer_usedregion(&nameb, &r);
|
||||
namestr[r.length] = '\0';
|
||||
|
||||
tkey->key = NULL;
|
||||
tkey->ring = NULL;
|
||||
if (length > 0) {
|
||||
dns_tsigkey_t *tmp;
|
||||
|
||||
|
|
@ -147,10 +149,6 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
|
|||
isc_rwlock_unlock(&ring->lock, isc_rwlocktype_write);
|
||||
tkey->ring = ring;
|
||||
}
|
||||
else {
|
||||
tkey->key = NULL;
|
||||
tkey->ring = NULL;
|
||||
}
|
||||
|
||||
tkey->refs = 0;
|
||||
if (key != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue