comparison libpurple/dnssrv.c @ 26162:0a19fa42f8ce

propagate from branch 'im.pidgin.pidgin' (head eeaad582dcb34b6753c78371c4aa03af92b095f5) to branch 'im.pidgin.soc.2008.yahoo' (head 182668e30410a6c12e970fad010f219ee6b59e73)
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Tue, 20 Jan 2009 17:44:36 +0000
parents d1da5c4c1e6b
children 1d1d1829de11 a155920a6f66
comparison
equal deleted inserted replaced
26161:90ffe6f71fa9 26162:0a19fa42f8ce
334 #else 334 #else
335 GError* err = NULL; 335 GError* err = NULL;
336 static gboolean initialized = FALSE; 336 static gboolean initialized = FALSE;
337 #endif 337 #endif
338 338
339 if (!protocol || !*protocol || !transport || !*transport || !domain || !*domain) {
340 purple_debug_error("dnssrv", "Wrong arguments\n");
341 cb(NULL, 0, extradata);
342 g_return_val_if_reached(NULL);
343 }
344
339 query = g_strdup_printf("_%s._%s.%s", protocol, transport, domain); 345 query = g_strdup_printf("_%s._%s.%s", protocol, transport, domain);
340 purple_debug_info("dnssrv","querying SRV record for %s\n", query); 346 purple_debug_info("dnssrv","querying SRV record for %s\n", query);
341 347
342 #ifndef _WIN32 348 #ifndef _WIN32
343 if(pipe(in) || pipe(out)) { 349 if(pipe(in) || pipe(out)) {