]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 6 Nov 2001 19:24:08 +0000 (19:24 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 6 Nov 2001 19:24:08 +0000 (19:24 +0000)
cvs rdiff -r1.89 -r1.90 bind9/lib/dns/sec/dst/dst_api.c

lib/dns/sec/dst/dst_api.c

index 70527d8dd5122bb6cf3b45ed58419bef31c89aa7..82076d4bb0d5cf1d13b47a2b65d4ff8914ee2c9d 100644 (file)
@@ -19,7 +19,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: dst_api.c,v 1.88 2001/07/10 21:27:59 bwelling Exp $
+ * $Id: dst_api.c,v 1.88.2.1 2001/11/06 19:24:08 gson Exp $
  */
 
 #include <config.h>
@@ -1014,10 +1014,8 @@ computeid(dst_key_t *key) {
 
        isc_buffer_init(&dnsbuf, dns_array, sizeof(dns_array));
        ret = dst_key_todns(key, &dnsbuf);
-       if (ret != ISC_R_SUCCESS) {
-               dst_key_free(&key);
+       if (ret != ISC_R_SUCCESS)
                return (ret);
-       }
 
        isc_buffer_usedregion(&dnsbuf, &r);
        key->key_id = dst_region_computeid(&r, key->key_alg);