fixed wrong malloc in test code for dns resolv

pull/6897/head
David Garcia Quintas 9 years ago
parent b08fa491c9
commit e77e9b3010
  1. 2
      test/core/client_config/resolvers/dns_resolver_connectivity_test.c

@ -77,7 +77,7 @@ static grpc_error *my_resolve_address(const char *name, const char *addr,
return GRPC_ERROR_CREATE("Forced Failure");
} else {
gpr_mu_unlock(&g_mu);
*addrs = gpr_malloc(sizeof(*addrs));
*addrs = gpr_malloc(sizeof(**addrs));
(*addrs)->naddrs = 1;
(*addrs)->addrs = gpr_malloc(sizeof(*(*addrs)->addrs));
(*addrs)->addrs[0].len = 123;

Loading…
Cancel
Save