From d9424e8871265c546b516cbf7b7110551e3b83f4 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 4 Feb 2014 15:10:23 +0100 Subject: [PATCH] Make tests_dnssec exit at some point --- src/test/tests_dnssec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/tests_dnssec.c b/src/test/tests_dnssec.c index e5f1d508..bc34c407 100644 --- a/src/test/tests_dnssec.c +++ b/src/test/tests_dnssec.c @@ -67,6 +67,7 @@ this_callbackfn(struct getdns_context *this_context, "The callback got a callback_type of %d. Exiting.", this_callback_type); getdns_dict_destroy(this_response); + (void) event_base_loopexit((struct event_base *)this_userarg, NULL); } int @@ -107,13 +108,12 @@ main(int argc, char** argv) this_event_base); /* Set up the getdns call */ const char *this_name = argc > 1 ? argv[1] : "www.example.com"; - char *this_userarg = "somestring"; // Could add things here to help identify this call getdns_transaction_t this_transaction_id = 0; /* Make the call */ - getdns_return_t dns_request_return = - getdns_address(this_context, this_name, - this_extensions, this_userarg, &this_transaction_id, this_callbackfn); + getdns_return_t dns_request_return = getdns_address( + this_context, this_name, this_extensions, + this_event_base, &this_transaction_id, this_callbackfn); if (dns_request_return == GETDNS_RETURN_BAD_DOMAIN_NAME) { fprintf(stderr, "A bad domain name was used: %s. Exiting.", this_name);