aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/si.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-21 00:39:45 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-21 00:39:45 +0000
commit699376f7c3b3d6aff18af0601fa1f1ac6c5a2892 (patch)
tree73fee00cdb64aa0b1971f8badc07d30e0f3eef64 /protocols/jabber/si.c
parentb8a491db597ba2d82cc8eddc727509197747f0d5 (diff)
Read the from attribute from the main stanza, not the inside query. Also
fixing another potential NULL pointer dereference.
Diffstat (limited to 'protocols/jabber/si.c')
-rw-r--r--protocols/jabber/si.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/jabber/si.c b/protocols/jabber/si.c
index a87f7b8b..b76fb3e0 100644
--- a/protocols/jabber/si.c
+++ b/protocols/jabber/si.c
@@ -249,6 +249,7 @@ int jabber_si_handle_request( struct im_connection *ic, struct xt_node *node, st
c = d->children;
while( ( c = xt_find_node( c, "option" ) ) )
if( ( d = xt_find_node( c->children, "value" ) ) &&
+ ( d->text != NULL ) &&
( strcmp( d->text, XMLNS_BYTESTREAMS ) == 0 ) )
{
requestok = TRUE;