changeset 15228:192c66c0c2cb

[gaim-migrate @ 18018] Fix a crash when an invalid (or at least I think it is) upnp response is received. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 17 Dec 2006 20:14:41 +0000
parents a5ef8fc9fbeb
children c42968092d15
files libgaim/upnp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/upnp.c	Sun Dec 17 19:17:36 2006 +0000
+++ b/libgaim/upnp.c	Sun Dec 17 20:14:41 2006 +0000
@@ -339,7 +339,7 @@
 	}
 
 	tmp = xmlnode_get_data(controlURLNode);
-	if(!gaim_str_has_prefix(tmp, "http://") &&
+	if(baseURL && !gaim_str_has_prefix(tmp, "http://") &&
 	   !gaim_str_has_prefix(tmp, "HTTP://")) {
 		controlURL = g_strdup_printf("%s%s", baseURL, tmp);
 		g_free(tmp);