comparison src/protocols/oscar/ssi.c @ 8226:c5e3797e7dbb

[gaim-migrate @ 8949] Fix a crash when the "use Recent Buddies group" option is enabled (can currently only be enabled from AOL). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 11 Feb 2004 05:01:00 +0000
parents be7c1468c6a7
children b01822d23da3
comparison
equal deleted inserted replaced
8225:9790cda80d52 8226:c5e3797e7dbb
1345 } 1345 }
1346 1346
1347 /* 1347 /*
1348 * Subtype 0x0008 - Incoming SSI add. 1348 * Subtype 0x0008 - Incoming SSI add.
1349 * 1349 *
1350 * XXX - It would probably be good for the client to actually do something when it gets this. 1350 * Sent by the server, for example, when someone is added to
1351 * your "Recent Buddies" group.
1351 */ 1352 */
1352 static int parseadd(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 1353 static int parseadd(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
1353 { 1354 {
1354 int ret = 0; 1355 int ret = 0;
1355 aim_rxcallback_t userfunc; 1356 aim_rxcallback_t userfunc;
1375 free(name); 1376 free(name);
1376 aim_tlvlist_free(&data); 1377 aim_tlvlist_free(&data);
1377 1378
1378 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) 1379 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
1379 ret = userfunc(sess, rx); 1380 ret = userfunc(sess, rx);
1380
1381 free(name);
1382 } 1381 }
1383 1382
1384 return ret; 1383 return ret;
1385 } 1384 }
1386 1385