Use stanza_get_error_message for pong errors

This commit is contained in:
James Booth
2014-09-09 22:26:14 +01:00
parent 273cddd661
commit 3417f25dd1
2 changed files with 12 additions and 41 deletions

View File

@@ -968,6 +968,8 @@ stanza_get_error_message(xmpp_stanza_t *stanza)
if (error_stanza == NULL) {
return strdup("unknown");
} else {
// check for text child
xmpp_stanza_t *text_stanza = xmpp_stanza_get_child_by_name(error_stanza, STANZA_NAME_TEXT);
// check for text