Mercurial > pidgin
comparison src/proxy.c @ 4679:5b372a95b9a8
[gaim-migrate @ 4990]
thanks for pointing that out Paco-Paco
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sat, 08 Mar 2003 19:07:50 +0000 |
| parents | 9ce3c698ff5e |
| children | de84c1de2f66 |
comparison
equal
deleted
inserted
replaced
| 4678:9ce3c698ff5e | 4679:5b372a95b9a8 |
|---|---|
| 475 getpid(), rc); | 475 getpid(), rc); |
| 476 dns_params.hostname[0] = '\0'; | 476 dns_params.hostname[0] = '\0'; |
| 477 continue; | 477 continue; |
| 478 } | 478 } |
| 479 write(child_out[1], &zero, sizeof(zero)); | 479 write(child_out[1], &zero, sizeof(zero)); |
| 480 tmp = res; | |
| 480 while(res) { | 481 while(res) { |
| 481 write(child_out[1], &(res->ai_addrlen), sizeof(res->ai_addrlen)); | 482 write(child_out[1], &(res->ai_addrlen), sizeof(res->ai_addrlen)); |
| 482 write(child_out[1], res->ai_addr, res->ai_addrlen); | 483 write(child_out[1], res->ai_addr, res->ai_addrlen); |
| 483 tmp = res; | |
| 484 res = res->ai_next; | 484 res = res->ai_next; |
| 485 freeaddrinfo(tmp); | |
| 486 } | 485 } |
| 486 freeaddrinfo(tmp); | |
| 487 write(child_out[1], &zero, sizeof(zero)); | 487 write(child_out[1], &zero, sizeof(zero)); |
| 488 #else | 488 #else |
| 489 if (!inet_aton(hostname, &sin.sin_addr)) { | 489 if (!inet_aton(hostname, &sin.sin_addr)) { |
| 490 struct hostent *hp; | 490 struct hostent *hp; |
| 491 if(!(hp = gethostbyname(dns_params.hostname))) { | 491 if(!(hp = gethostbyname(dns_params.hostname))) { |
