diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-02-24 11:47:50 -0800 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-02-24 11:47:50 -0800 |
commit | 8e3890b12f48f4d4c2387cf9ac4cf3405bbf6615 (patch) | |
tree | 86f4beefd884b4834d682984d6b641d60b2b50d7 | |
parent | 79ec314c445e6bf9a6fbef7a8681a56df2be0b63 (diff) |
Fix memory corruption on Jabber disconnect with xmlconsole and
handle_unknown=add enabled.
-rw-r--r-- | protocols/bee_user.c | 2 | ||||
-rw-r--r-- | protocols/jabber/io.c | 2 |
2 files changed, 2 insertions, 2 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" ); diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index 9170f036..ef7d5c13 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -44,7 +44,7 @@ int jabber_write( struct im_connection *ic, char *buf, int len ) struct jabber_data *jd = ic->proto_data; gboolean ret; - if( jd->flags & JFLAG_XMLCONSOLE ) + if( jd->flags & JFLAG_XMLCONSOLE && !( ic->flags & OPT_LOGGING_OUT ) ) { char *msg, *s; |