Commit 8447ecf6 authored by Brian Wellington's avatar Brian Wellington
Browse files

Check for NULL before checking for key size.

parent 842e0d16
......@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.87 2000/09/07 20:34:04 bwelling Exp $
* $Id: tsig.c,v 1.88 2000/09/08 07:51:28 bwelling Exp $
* Principal Author: Brian Wellington
*/
......@@ -183,7 +183,7 @@ dns_tsigkey_createfromkey(dns_name_t *name, dns_name_t *algorithm,
tkey->magic = TSIG_MAGIC;
if (dst_key_size(dstkey) < 64) {
if (dstkey != NULL && dst_key_size(dstkey) < 64) {
char namestr[DNS_NAME_FORMATSIZE];
dns_name_format(name, namestr, sizeof(namestr));
isc_log_write(dns_lctx, DNS_LOGCATEGORY_DNSSEC,
......
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