1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Added NULL check on disco response id

This commit is contained in:
James Booth 2013-01-21 19:28:38 +00:00
parent b16c79966e
commit df38fc332a

View File

@ -969,7 +969,8 @@ _iq_handler(xmpp_conn_t * const conn,
return _roster_handler(conn, stanza, userdata);
// handle disco responses
} else if ((g_str_has_prefix(id, "disco")) && (g_strcmp0(type, "result") == 0)) {
} else if ((id != NULL) && (g_str_has_prefix(id, "disco")) &&
(g_strcmp0(type, "result") == 0)) {
return _disco_response_handler(conn, stanza, userdata);
// handle disco requests