Lines Matching refs:newaip
498 struct addrinfo *newaip;
503 newaip = malloc(sizeof(struct addrinfo) + aip->ai_addrlen);
504 if (newaip == NULL)
507 *newaip = *aip;
508 newaip->ai_addr = (struct sockaddr *)(newaip + 1);
509 memcpy(newaip->ai_addr, aip->ai_addr, aip->ai_addrlen);
511 if (newaip->ai_canonname != NULL)
512 newaip->ai_canonname = decode_name_dynamic(aip->ai_canonname);
514 newaip->ai_next = copy_decode_addrinfo_dynamic(aip->ai_next);
515 return (newaip);