--- a/libpurple/protocols/jabber/jabber.c Tue Apr 28 23:35:32 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Apr 29 02:12:19 2009 +0000 @@ -776,7 +776,7 @@ js->user = jabber_id_new(purple_account_get_username(account)); js->next_id = g_random_int(); js->write_buffer = purple_circ_buffer_new(512); - js->old_length = -1; + js->old_length = 0; js->keepalive_timeout = -1; /* Set the default protocol version to 1.0. Overridden in parser.c. */ js->protocol_version = JABBER_PROTO_1_0;