summaryrefslogtreecommitdiff
path: root/bin/tests/dst
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2012-01-18 10:11:16 -0700
committerInternet Software Consortium, Inc <@isc.org>2012-01-18 10:11:16 -0700
commitf8bb4eefd76094703b91acc987d8df0603639376 (patch)
treee2b41a79e5cee716e4c8b9c07c83910509e6ac2e /bin/tests/dst
parent8b08ed79737eaec2fd64fbecce719fc5d91c0f48 (diff)
downloadbind9-f8bb4eefd76094703b91acc987d8df0603639376.tar.gz
9.9.0rc1
Diffstat (limited to 'bin/tests/dst')
-rwxr-xr-xbin/tests/dst/gsstest.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/bin/tests/dst/gsstest.c b/bin/tests/dst/gsstest.c
index b9aee2ce..6187f2a4 100755
--- a/bin/tests/dst/gsstest.c
+++ b/bin/tests/dst/gsstest.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: gsstest.c,v 1.18 2011-09-05 17:39:37 each Exp $ */
+/* $Id: gsstest.c,v 1.19 2011-11-30 00:48:51 marka Exp $ */
#include <config.h>
@@ -135,7 +135,7 @@ static void
recvresponse(isc_task_t *task, isc_event_t *event) {
dns_requestevent_t *reqev = (dns_requestevent_t *)event;
isc_result_t result, result2;
- dns_message_t *query, *response = NULL;
+ dns_message_t *query = NULL, *response = NULL;
isc_buffer_t outtoken;
isc_buffer_t outbuf;
char output[10 * 1024];
@@ -172,14 +172,14 @@ recvresponse(isc_task_t *task, isc_event_t *event) {
CHECK("dns_request_getresponse", result2);
- if (response)
+ if (response != NULL)
dns_message_destroy(&response);
end:
- if (query)
+ if (query != NULL)
dns_message_destroy(&query);
- if (reqev->request)
+ if (reqev->request != NULL)
dns_request_destroy(&reqev->request);
isc_event_free(&event);
@@ -272,7 +272,7 @@ static void
initctx2(isc_task_t *task, isc_event_t *event) {
dns_requestevent_t *reqev = (dns_requestevent_t *)event;
isc_result_t result;
- dns_message_t *query, *response = NULL;
+ dns_message_t *query = NULL, *response = NULL;
isc_buffer_t outtoken;
unsigned char array[DNS_NAME_MAXTEXT + 1];
dns_rdataset_t *rdataset;
@@ -331,14 +331,13 @@ initctx2(isc_task_t *task, isc_event_t *event) {
tsigkey = NULL;
}
- if (response)
- dns_message_destroy(&response);
+ dns_message_destroy(&response);
end:
- if (query)
+ if (query != NULL)
dns_message_destroy(&query);
- if (reqev->request)
+ if (reqev->request != NULL)
dns_request_destroy(&reqev->request);
isc_event_free(&event);