comparison src/dnssrv.c @ 13894:b9404076ef67

[gaim-migrate @ 16377] Fix a crash bug pointed out by Alexander Sashnov: There is another segfault (on today SVN trunk version). Steps for reproduce: 1. Create jabber account with incorrect params, check it for connect on start up; 2. run Gaim again. It will not connect and see error message in bottom of users list; 3. Open 'accounts' dialog and deselect this account..... segfault :-) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 30 Jun 2006 06:58:17 +0000
parents 386a4f784cde
children
comparison
equal deleted inserted replaced
13893:ab671b76fb96 13894:b9404076ef67
273 return NULL; 273 return NULL;
274 } 274 }
275 275
276 #endif 276 #endif
277 277
278 /*
279 * TODO: It would be really good if this returned some sort of handle
280 * that we could use to cancel the DNS query. As it is now,
281 * each callback has to check to make sure gc is still valid.
282 * And that is ugly.
283 */
278 void gaim_srv_resolve(const char *protocol, const char *transport, const char *domain, GaimSRVCallback cb, gpointer extradata) { 284 void gaim_srv_resolve(const char *protocol, const char *transport, const char *domain, GaimSRVCallback cb, gpointer extradata) {
279 char *query = g_strdup_printf("_%s._%s.%s",protocol, transport, domain); 285 char *query = g_strdup_printf("_%s._%s.%s",protocol, transport, domain);
280 struct resdata *rdata; 286 struct resdata *rdata;
281 #ifndef _WIN32 287 #ifndef _WIN32
282 int in[2], out[2]; 288 int in[2], out[2];