mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
A call to isc_mem_put could (in some cases) be called with an invalid size.
This commit is contained in:
parent
78106d74eb
commit
6e5fa98df0
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: tsig.c,v 1.89 2000/09/12 09:57:31 bwelling Exp $
|
||||
* $Id: tsig.c,v 1.90 2000/09/21 21:29:16 bwelling Exp $
|
||||
* Principal Author: Brian Wellington
|
||||
*/
|
||||
|
||||
|
|
@ -579,7 +579,7 @@ cleanup_dynbuf:
|
|||
isc_buffer_free(&dynbuf);
|
||||
cleanup_signature:
|
||||
if (tsig.signature != NULL)
|
||||
isc_mem_put(mctx, tsig.signature, tsig.siglen);
|
||||
isc_mem_put(mctx, tsig.signature, sigsize);
|
||||
cleanup_context:
|
||||
if (ctx != NULL)
|
||||
dst_context_destroy(&ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue