changeset 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 2c380754eb67
files src/proxy.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Sat Mar 08 17:54:36 2003 +0000
+++ b/src/proxy.c	Sat Mar 08 19:07:50 2003 +0000
@@ -477,13 +477,13 @@
 					continue;
 				}
 				write(child_out[1], &zero, sizeof(zero));
+				tmp = res;
 				while(res) {
 					write(child_out[1], &(res->ai_addrlen), sizeof(res->ai_addrlen));
 					write(child_out[1], res->ai_addr, res->ai_addrlen);
-					tmp = res;
 					res = res->ai_next;
-					freeaddrinfo(tmp);
 				}
+				freeaddrinfo(tmp);
 				write(child_out[1], &zero, sizeof(zero));
 #else
 				if (!inet_aton(hostname, &sin.sin_addr)) {