comparison libpurple/protocols/jabber/oob.c @ 27941:db99cde1845c

Fix crashes when filenames end up being NULL in some prpls. Fixed a minor leak in MSNP9 while we're at it. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 16 Aug 2009 23:46:15 +0000
parents c8606917787a
children c585572e80dd
comparison
equal deleted inserted replaced
27940:cd257777ac5d 27941:db99cde1845c
205 return; 205 return;
206 206
207 url = xmlnode_get_data(urlnode); 207 url = xmlnode_get_data(urlnode);
208 208
209 jox = g_new0(JabberOOBXfer, 1); 209 jox = g_new0(JabberOOBXfer, 1);
210 purple_url_parse(url, &jox->address, &jox->port, &jox->page, NULL, NULL); 210 if (!purple_url_parse(url, &jox->address, &jox->port, &jox->page, NULL, NULL)) {
211 g_free(url);
212 return;
213 }
211 g_free(url); 214 g_free(url);
212 jox->js = js; 215 jox->js = js;
213 jox->headers = g_string_new(""); 216 jox->headers = g_string_new("");
214 jox->iq_id = g_strdup(id); 217 jox->iq_id = g_strdup(id);
215 218