aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/bee_user.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-02-24 11:47:50 -0800
committerWilmer van der Gaast <wilmer@gaast.net>2011-02-24 11:47:50 -0800
commit8e3890b12f48f4d4c2387cf9ac4cf3405bbf6615 (patch)
tree86f4beefd884b4834d682984d6b641d60b2b50d7 /protocols/bee_user.c
parent79ec314c445e6bf9a6fbef7a8681a56df2be0b63 (diff)
Fix memory corruption on Jabber disconnect with xmlconsole and
handle_unknown=add enabled.
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r--protocols/bee_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/bee_user.c b/protocols/bee_user.c
index 0b118853..f0091799 100644
--- a/protocols/bee_user.c
+++ b/protocols/bee_user.c
@@ -250,7 +250,7 @@ void imcb_buddy_msg( struct im_connection *ic, const char *handle, char *msg, ui
bu = bee_user_by_handle( bee, ic, handle );
- if( !bu )
+ if( !bu && !( ic->flags & OPT_LOGGING_OUT ) )
{
char *h = set_getstr( &bee->set, "handle_unknown" );