comparison libpurple/dnssrv.c @ 25237:401f548e3544

propagate from branch 'im.pidgin.pidgin' (head df6eba32e5b6b34d7483cbfb7e9f2e4c836ac35f) to branch 'org.darkrain42.pidgin.buddy-add' (head 6831808999a270f8c1a128c7430a73d3dc0bfae2)
author Paul Aurich <paul@darkrain42.org>
date Sun, 21 Dec 2008 18:32:37 +0000
parents d1da5c4c1e6b
children 1d1d1829de11 a155920a6f66
comparison
equal deleted inserted replaced
25172:125cac3e24ee 25237:401f548e3544
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)) {