Lines Matching refs:newaip
458 struct my_addrinfo *newaip;
463 newaip = malloc(sizeof(struct my_addrinfo) + aip->ai_addrlen);
464 if (newaip == NULL)
467 *newaip = *aip;
468 newaip->ai_addr = (struct sockaddr *)(newaip + 1);
469 memcpy(newaip->ai_addr, aip->ai_addr, aip->ai_addrlen);
471 if (newaip->ai_canonname != NULL)
472 newaip->ai_canonname = decode_name_dynamic(aip->ai_canonname,
475 newaip->ai_next = copy_decode_addrinfo_dynamic(aip->ai_next, idnctx);
476 return (newaip);