mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added NULL check on disco response id
This commit is contained in:
parent
b16c79966e
commit
df38fc332a
@ -969,7 +969,8 @@ _iq_handler(xmpp_conn_t * const conn,
|
|||||||
return _roster_handler(conn, stanza, userdata);
|
return _roster_handler(conn, stanza, userdata);
|
||||||
|
|
||||||
// handle disco responses
|
// 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);
|
return _disco_response_handler(conn, stanza, userdata);
|
||||||
|
|
||||||
// handle disco requests
|
// handle disco requests
|
||||||
|
Loading…
Reference in New Issue
Block a user