Lines Matching full:ca
80 Curl_addrinfo *ca; in Curl_freeaddrinfo() local
82 for(ca = cahead; ca != NULL; ca = canext) { in Curl_freeaddrinfo()
83 free(ca->ai_addr); in Curl_freeaddrinfo()
84 free(ca->ai_canonname); in Curl_freeaddrinfo()
85 canext = ca->ai_next; in Curl_freeaddrinfo()
87 free(ca); in Curl_freeaddrinfo()
117 Curl_addrinfo *ca; in Curl_getaddrinfo_ex() local
150 if((ca = malloc(sizeof(Curl_addrinfo))) == NULL) { in Curl_getaddrinfo_ex()
158 ca->ai_flags = ai->ai_flags; in Curl_getaddrinfo_ex()
159 ca->ai_family = ai->ai_family; in Curl_getaddrinfo_ex()
160 ca->ai_socktype = ai->ai_socktype; in Curl_getaddrinfo_ex()
161 ca->ai_protocol = ai->ai_protocol; in Curl_getaddrinfo_ex()
162 ca->ai_addrlen = (curl_socklen_t)ss_size; in Curl_getaddrinfo_ex()
163 ca->ai_addr = NULL; in Curl_getaddrinfo_ex()
164 ca->ai_canonname = NULL; in Curl_getaddrinfo_ex()
165 ca->ai_next = NULL; in Curl_getaddrinfo_ex()
167 if((ca->ai_addr = malloc(ss_size)) == NULL) { in Curl_getaddrinfo_ex()
169 free(ca); in Curl_getaddrinfo_ex()
172 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex()
175 if((ca->ai_canonname = strdup(ai->ai_canonname)) == NULL) { in Curl_getaddrinfo_ex()
177 free(ca->ai_addr); in Curl_getaddrinfo_ex()
178 free(ca); in Curl_getaddrinfo_ex()
185 cafirst = ca; in Curl_getaddrinfo_ex()
189 calast->ai_next = ca; in Curl_getaddrinfo_ex()
190 calast = ca; in Curl_getaddrinfo_ex()