about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-21 19:28:38 +0000
committerJames Booth <boothj5@gmail.com>2013-01-21 19:28:38 +0000
commitdf38fc332a2593514cb94c9a632e522f11c5583e (patch)
tree1bb317fc73db97bcd986c8d726168b4d065ddcc2 /src
parentb16c79966e7d7645800e370f811b69c997b31fc5 (diff)
downloadprofani-tty-df38fc332a2593514cb94c9a632e522f11c5583e.tar.gz
Added NULL check on disco response id
Diffstat (limited to 'src')
-rw-r--r--src/jabber.c3
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