2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 09:05:40 +00:00

call dns_tsigkeyring_detach(&ring)

This commit is contained in:
Mark Andrews
2011-01-10 13:09:49 +00:00
parent 7d74de75b9
commit b053854c20
2 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: keycreate.c,v 1.18 2009/09/01 00:22:25 jinmei Exp $ */
/* $Id: keycreate.c,v 1.19 2011/01/10 13:09:49 marka Exp $ */
#include <config.h>
@@ -276,6 +276,7 @@ main(int argc, char *argv[]) {
view = NULL;
RUNCHECK(dns_view_create(mctx, 0, "_test", &view));
dns_view_setkeyring(view, ring);
dns_tsigkeyring_detach(&ring);
sock = NULL;
RUNCHECK(isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp,

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: keydelete.c,v 1.16 2010/12/09 00:54:33 marka Exp $ */
/* $Id: keydelete.c,v 1.17 2011/01/10 13:09:49 marka Exp $ */
#include <config.h>
@@ -248,6 +248,8 @@ main(int argc, char **argv) {
isc_socketmgr_destroy(&socketmgr);
isc_timermgr_destroy(&timermgr);
dns_tsigkeyring_detach(&ring);
dns_tsigkey_detach(&tsigkey);
dns_tkeyctx_destroy(&tctx);