aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/message.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-08-08 10:20:57 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-08-08 10:20:57 +0100
commit82135c7178b6379f35741991f6c06bb308143194 (patch)
tree30faf33bafbcbe985a04ee255d9226a7d868448c /protocols/jabber/message.c
parent1baaef858136cd3a4799b3ccf1d9961534e0017c (diff)
Not trying to handle typing notifications from unknown buddies anymore
(NULL pointer dereference).
Diffstat (limited to 'protocols/jabber/message.c')
-rw-r--r--protocols/jabber/message.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/jabber/message.c b/protocols/jabber/message.c
index 52ee3a53..fab62a91 100644
--- a/protocols/jabber/message.c
+++ b/protocols/jabber/message.c
@@ -89,7 +89,11 @@ xt_status jabber_pkt_message( struct xt_node *node, gpointer data )
g_string_free( fullmsg, TRUE );
/* Handling of incoming typing notifications. */
- if( xt_find_node( node->children, "composing" ) )
+ if( bud == NULL )
+ {
+ /* Can't handle these for unknown buddies. */
+ }
+ else if( xt_find_node( node->children, "composing" ) )
{
bud->flags |= JBFLAG_DOES_XEP85;
imcb_buddy_typing( ic, from, OPT_TYPING );