comparison src/protocols/oscar/family_feedbag.c @ 13662:b198d0c26b83

[gaim-migrate @ 16064] Fix Coverity CID 26: A potential crash when the server sends us an incoming channel 2 ICBM of the ICQ server relay type but does not send the data normally associated with such an ICBM. This should never happen. Fix Coverity CID 45: A potential crash when the server sends us an incoming channel 2 ICBM but does not send the data normally associated with such an ICBM. This should never happen. Fix Coverity CID 47: A 1 byte memleak when signing on using the old blist method and not when using SSI. This never happens. As far as I can tell it has been like this since the beginning of time. It's a weird memleak. Fix Coverity CID 57: A memleak of the length of a screen name when searching for screen names by email address and the server returns a malformed SNAC. This should never happen. Fix Coverity CID 59: A memleak of the length of an ICBM when _parsing_ an outgoing ICBM. I don't believe this ever happens, and I suspect the code exists from a time when libfaim was perhaps being written so that it could be used in an AIM server (in addition to just a client). I should probably remove the function. Fix Coverity CID 132: A memleak of the length of the email address when searching for screen names by email address. Fix Coverity CID 146: Check the return value of read() and print a warning to the debug window. This code is only used when AOL enables their crazy AIM executable hash value stuff, which hasn't happened in 5 years or so. Fix Coverity CID 191: Comment out some code that isn't used. Fix Coverity CID 192: Get rid of a harmless assignment to a variable that wasn't used. Fix Coverity CID 194: Comment out some variables and code that isn't used. Fix Coverity CID 198: Get rid of a variable that wasn't used in gaim_ssi_parselist(). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 19 Apr 2006 03:31:47 +0000
parents 5796551db930
children 33294de08fe0
comparison
equal deleted inserted replaced
13661:d845dc5712bb 13662:b198d0c26b83
743 return -EINVAL; 743 return -EINVAL;
744 744
745 /* Find the parent */ 745 /* Find the parent */
746 if (!(parent = aim_ssi_itemlist_finditem(od->ssi.local, group, NULL, AIM_SSI_TYPE_GROUP))) { 746 if (!(parent = aim_ssi_itemlist_finditem(od->ssi.local, group, NULL, AIM_SSI_TYPE_GROUP))) {
747 /* Find the parent's parent (the master group) */ 747 /* Find the parent's parent (the master group) */
748 if (!(parent = aim_ssi_itemlist_find(od->ssi.local, 0x0000, 0x0000))) 748 if (aim_ssi_itemlist_find(od->ssi.local, 0x0000, 0x0000) == NULL)
749 if (!(parent = aim_ssi_itemlist_add(&od->ssi.local, NULL, 0x0000, 0x0000, AIM_SSI_TYPE_GROUP, NULL))) 749 if (aim_ssi_itemlist_add(&od->ssi.local, NULL, 0x0000, 0x0000, AIM_SSI_TYPE_GROUP, NULL) == NULL)
750 return -ENOMEM; 750 return -ENOMEM;
751 /* Add the parent */ 751 /* Add the parent */
752 if (!(parent = aim_ssi_itemlist_add(&od->ssi.local, group, 0xFFFF, 0x0000, AIM_SSI_TYPE_GROUP, NULL))) 752 if (!(parent = aim_ssi_itemlist_add(&od->ssi.local, group, 0xFFFF, 0x0000, AIM_SSI_TYPE_GROUP, NULL)))
753 return -ENOMEM; 753 return -ENOMEM;
754 754
1305 aim_ssi_itemlist_add(&od->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data); 1305 aim_ssi_itemlist_add(&od->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data);
1306 1306
1307 od->ssi.received_data = 1; 1307 od->ssi.received_data = 1;
1308 1308
1309 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype))) 1309 if ((userfunc = aim_callhandler(od, snac->family, snac->subtype)))
1310 ret = userfunc(od, conn, frame, fmtver, od->ssi.numitems, od->ssi.official, od->ssi.timestamp); 1310 ret = userfunc(od, conn, frame, fmtver, od->ssi.numitems, od->ssi.timestamp);
1311 } 1311 }
1312 1312
1313 return ret; 1313 return ret;
1314 } 1314 }
1315 1315