# HG changeset patch # User Mark Doliner # Date 1133639966 0 # Node ID cfffd6fdb073eaab39eeafe24d11459ab3ef2a4f # Parent 5907fb1e58a0dc8969dbc19a8b32f7f085b64093 [gaim-migrate @ 14611] fix sf bug #1371184, AIM Triton and Away/Available Messages "When a AIM Triton buddy returns from away, Gaim takes that away message and calls it a Available message." Ah, the joys of a closed protocol. committer: Tailor Script diff -r 5907fb1e58a0 -r cfffd6fdb073 src/protocols/oscar/locate.c --- a/src/protocols/oscar/locate.c Sat Dec 03 19:39:40 2005 +0000 +++ b/src/protocols/oscar/locate.c Sat Dec 03 19:59:26 2005 +0000 @@ -756,8 +756,9 @@ } break; case 0x0002: { /* An available message */ + free(outinfo->avail); + free(outinfo->avail_encoding); if (length2 >= 4) { - free(outinfo->avail); outinfo->avail_len = aimbs_get16(bs); outinfo->avail = aimbs_getstr(bs, outinfo->avail_len); if (aimbs_get16(bs) == 0x0001) { /* We have an encoding */ @@ -767,8 +768,12 @@ /* No explicit encoding, client should use UTF-8 */ outinfo->avail_encoding = NULL; } - } else + } else { aim_bstream_advance(bs, length2); + outinfo->avail_len = 0; + outinfo->avail = g_strdup(""); + outinfo->avail_encoding = NULL; + } } break; default: {