diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-30 14:31:46 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-31 17:40:44 +0000 |
commit | 603aeb65562002ca1aa6273acf8580f88486e345 (patch) | |
tree | 64286cef3a6db7a83e8087ea86353e5238c3b90f | |
parent | aa11a7ed781c48ffda4d00f303776603d2f6ada5 (diff) |
ft-channel: spell out finding <si><file> node.
-rw-r--r-- | src/ft-channel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ft-channel.c b/src/ft-channel.c index 565a6ff53..5dec2be53 100644 --- a/src/ft-channel.c +++ b/src/ft-channel.c @@ -1322,7 +1322,8 @@ bytestream_negotiate_cb (GabbleBytestreamIface *bytestream, gpointer user_data) { GabbleFileTransferChannel *self = GABBLE_FILE_TRANSFER_CHANNEL (user_data); - WockyNode *file; + WockyNode *si; + WockyNode *file = NULL; if (bytestream == NULL) { @@ -1334,7 +1335,10 @@ bytestream_negotiate_cb (GabbleBytestreamIface *bytestream, return; } - file = lm_message_node_get_child_with_namespace (wocky_stanza_get_top_node (msg), "file", NULL); + si = wocky_node_get_child_ns (wocky_stanza_get_top_node (msg), "si", NS_SI); + if (si != NULL) + file = wocky_node_get_child_ns (si, "file", NULL); + if (file != NULL) { WockyNode *range; |