# HG changeset patch # User Nathan Walp # Date 1148945250 0 # Node ID b39a9270293969e56fc95b3e527645cf696d13eb # Parent e744943e749c2bb3170a4d334b5b3d0a58759055 [gaim-migrate @ 16203] g_assert killage committer: Tailor Script diff -r e744943e749c -r b39a92702939 src/upnp.c --- a/src/upnp.c Mon May 29 17:53:50 2006 +0000 +++ b/src/upnp.c Mon May 29 23:27:30 2006 +0000 @@ -187,10 +187,16 @@ static gboolean gaim_upnp_compare_service(const xmlnode* service, const gchar* serviceType) { - xmlnode* serviceTypeNode = xmlnode_get_child(service, "serviceType"); + xmlnode* serviceTypeNode; char *tmp; gboolean ret; + if(service == NULL) { + return FALSE; + } + + serviceTypeNode = xmlnode_get_child(service, "serviceType"); + if(serviceTypeNode == NULL) { return FALSE; }