2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

904. [bug] The server would leak memory if attempting to use

an expired TSIG key. [RT #1406]
This commit is contained in:
Brian Wellington
2001-06-15 02:24:02 +00:00
parent ea4dc97575
commit 0a9a3d8c6d
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
904. [bug] The server would leak memory if attempting to use
an expired TSIG key. [RT #1406]
903. [bug] dig should not crash when receiving a TCP packet
of length 0.

View File

@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.109 2001/06/04 19:33:14 tale Exp $
* $Id: tsig.c,v 1.110 2001/06/15 02:24:02 bwelling Exp $
*/
#include <config.h>
@@ -1123,7 +1123,6 @@ dns_tsigkey_find(dns_tsigkey_t **tsigkey, dns_name_t *name,
* The key has expired.
*/
RWUNLOCK(&ring->lock, isc_rwlocktype_read);
isc_refcount_decrement(&key->refs, NULL);
RWLOCK(&ring->lock, isc_rwlocktype_write);
(void) dns_rbt_deletename(ring->keys, name, ISC_FALSE);
RWUNLOCK(&ring->lock, isc_rwlocktype_write);