changeset 12977:36930e2a461e

[gaim-migrate @ 15330] Maybe avoid a crash in an otherwise already bad situation. Yeah, the debug message sucks, but so does what causes it, and no-one should be hitting this anyway. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 21 Jan 2006 02:00:54 +0000
parents 0a5b48576913
children 17901f14d46d
files src/proxy.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Sat Jan 21 01:59:07 2006 +0000
+++ b/src/proxy.c	Sat Jan 21 02:00:54 2006 +0000
@@ -735,6 +735,11 @@
 		}
 
 		req = gaim_dns_new_resolverthread(show_debug);
+		if (req == NULL)
+		{
+			gaim_debug_error("proxy", "oh dear, this is going to explode, I give up\n");
+			return -1;
+		}
 		send_dns_request_to_child(req, &dns_params);
 	}