diff options
author | James Booth <boothj5@gmail.com> | 2013-01-21 19:28:38 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-21 19:28:38 +0000 |
commit | df38fc332a2593514cb94c9a632e522f11c5583e (patch) | |
tree | 1bb317fc73db97bcd986c8d726168b4d065ddcc2 | |
parent | b16c79966e7d7645800e370f811b69c997b31fc5 (diff) | |
download | profani-tty-df38fc332a2593514cb94c9a632e522f11c5583e.tar.gz |
Added NULL check on disco response id
-rw-r--r-- | src/jabber.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jabber.c b/src/jabber.c index 098def2b..ffa71b97 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -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 |