]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Fri, 21 Jul 2000 22:13:05 +0000 (22:13 +0000)
committerAndreas Gustafsson <source@isc.org>
Fri, 21 Jul 2000 22:13:05 +0000 (22:13 +0000)
The wrong name was being duped when a tsig key was generated using tkey.

lib/dns/tsig.c

index 53793d9d556e32cabd51849f436da929c7303988..2cbb46bcecc659363b2ca65ac75834c26b5c7d5c 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 /*
- * $Id: tsig.c,v 1.72 2000/06/23 00:48:28 bwelling Exp $
+ * $Id: tsig.c,v 1.72.2.1 2000/07/21 22:13:05 gson Exp $
  * Principal Author: Brian Wellington
  */
 
@@ -100,7 +100,7 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
                        goto cleanup_algorithm;
                }
                dns_name_init(tkey->creator, NULL);
-               ret = dns_name_dup(algorithm, mctx, tkey->creator);
+               ret = dns_name_dup(creator, mctx, tkey->creator);
                if (ret != ISC_R_SUCCESS) {
                        isc_mem_put(mctx, tkey->creator, sizeof(dns_name_t));
                        goto cleanup_algorithm;