diff options
author | James Booth <boothj5@gmail.com> | 2013-03-08 00:17:31 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-03-08 00:17:31 +0000 |
commit | c8088bea417d0e039c1d84e96e796b6e0f684d3d (patch) | |
tree | f96f50afe223a123a1a414a90089201bceebfe85 /src/xmpp/iq.c | |
parent | 5c475d630a1c9867227bd57a0e2ee0a4f43bafa8 (diff) | |
download | profani-tty-c8088bea417d0e039c1d84e96e796b6e0f684d3d.tar.gz |
Tidied fix for id attributes that cause a segfault
fixes #151
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r-- | src/xmpp/iq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 4858482c..c587d918 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -350,6 +350,7 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan // xep-0115 if (g_strcmp0(id, "disco") == 0) { + log_debug("xep-0115 supported capabilities"); caps_key = strdup(node); // validate sha1 @@ -371,7 +372,9 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan // non supported hash, or legacy caps } else { + log_debug("Unsupported hash, or legacy capabilities"); caps_key = strdup(id + 6); + log_debug("Caps key: %s", caps_key); } // already cached @@ -380,6 +383,8 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan return 1; } + log_debug("Client info not cached"); + DataForm *form = NULL; FormField *formField = NULL; |