Mercurial > pidgin
changeset 11425:54fa445aff32
[gaim-migrate @ 13662]
most stupid bug ever. thanks to datallah for noticing
committer: Tailor Script <tailor@pidgin.im>
author | Thomas Butter <tbutter> |
---|---|
date | Fri, 02 Sep 2005 18:05:40 +0000 |
parents | e1ab173ef3b5 |
children | d678a37c16d9 |
files | src/stun.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stun.c Fri Sep 02 09:09:04 2005 +0000 +++ b/src/stun.c Fri Sep 02 18:05:40 2005 +0000 @@ -185,11 +185,12 @@ port = resp[0].port; } gaim_debug_info("stun", "got %d SRV responses, server: %s, port: %d\n", results, servername, port); + + host = gethostbyname(servername); if(!host->h_addr_list) { return; } - host = gethostbyname(servername); - + if((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { nattype.status = 0; do_callbacks();