From 849155d03a8f45236a812d3492dfea98b4ca8571 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 13 Apr 2016 20:21:42 -0700 Subject: [PATCH] Respect success --- test/core/end2end/fuzzers/api_fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/end2end/fuzzers/api_fuzzer.c b/test/core/end2end/fuzzers/api_fuzzer.c index 48389552e7e..ab3e42fe5aa 100644 --- a/test/core/end2end/fuzzers/api_fuzzer.c +++ b/test/core/end2end/fuzzers/api_fuzzer.c @@ -152,7 +152,7 @@ typedef struct addr_req { static void finish_resolve(grpc_exec_ctx *exec_ctx, void *arg, bool success) { addr_req *r = arg; - if (0 == strcmp(r->addr, "server")) { + if (success && 0 == strcmp(r->addr, "server")) { grpc_resolved_addresses *addrs = gpr_malloc(sizeof(*addrs)); addrs->naddrs = 1; addrs->addrs = gpr_malloc(sizeof(*addrs->addrs));