Respect success

pull/6160/head
Craig Tiller 9 years ago
parent 3840ca1a00
commit 849155d03a
  1. 2
      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) { static void finish_resolve(grpc_exec_ctx *exec_ctx, void *arg, bool success) {
addr_req *r = arg; 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)); grpc_resolved_addresses *addrs = gpr_malloc(sizeof(*addrs));
addrs->naddrs = 1; addrs->naddrs = 1;
addrs->addrs = gpr_malloc(sizeof(*addrs->addrs)); addrs->addrs = gpr_malloc(sizeof(*addrs->addrs));

Loading…
Cancel
Save