mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:22:05 -04:00
1143. [bug] When a trusted-keys statement was present and named
was built without crypto support, it would leak memory.
This commit is contained in:
parent
892476530f
commit
3638017bd3
2 changed files with 9 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1143. [bug] When a trusted-keys statement was present and named
|
||||
was built without crypto support, it would leak memory.
|
||||
|
||||
1142. [bug] dnssec-signzone would fail to delete temporary files
|
||||
in some failure cases. [RT #2144]
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: dst_api.c,v 1.95 2001/11/27 01:55:52 gson Exp $
|
||||
* $Id: dst_api.c,v 1.96 2001/11/28 02:35:02 bwelling Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
@ -1059,7 +1059,11 @@ frombuffer(dns_name_t *name, unsigned int alg, unsigned int flags,
|
|||
return (ISC_R_NOMEMORY);
|
||||
|
||||
if (isc_buffer_remaininglength(source) > 0) {
|
||||
CHECKALG(alg);
|
||||
ret = algorithm_status(alg);
|
||||
if (ret != ISC_R_SUCCESS) {
|
||||
dst_key_free(&key);
|
||||
return (ret);
|
||||
}
|
||||
if (key->func->fromdns == NULL) {
|
||||
dst_key_free(&key);
|
||||
return (DST_R_UNSUPPORTEDALG);
|
||||
|
|
|
|||
Loading…
Reference in a new issue