From: Andreas Gustafsson Date: Tue, 6 Nov 2001 19:24:08 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.2.0rc9~6 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=fb17fdbd0e16c9609386ae02acec434ed50ddda9;p=thirdparty%2Fbind9.git pullup: cvs rdiff -r1.89 -r1.90 bind9/lib/dns/sec/dst/dst_api.c --- diff --git a/lib/dns/sec/dst/dst_api.c b/lib/dns/sec/dst/dst_api.c index 70527d8dd51..82076d4bb0d 100644 --- a/lib/dns/sec/dst/dst_api.c +++ b/lib/dns/sec/dst/dst_api.c @@ -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 @@ -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);