Commit e4924310 authored by Brian Wellington's avatar Brian Wellington
Browse files

missing NULL initialization

parent c50936eb
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment