comparison src/protocols/oscar/oscar.h @ 13652:a07dcc2c01bd

[gaim-migrate @ 16053] Fix Coverity CID 42: Possible NULL pointer dereference when the server does not give us a cookie in their reply to our login response. This should never happen. Fix Coverity CID 43 and 44: Possible NULL pointer dereference. Technically not possible... but the code is cleaner and faster this way. Fix Coverity CID 58: Fix a memleak of two small strings totaling about 10 bytes when parsing most incoming chat messages (not IM--just chat) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 18 Apr 2006 04:03:18 +0000
parents 7f91efd5af77
children 33294de08fe0
comparison
equal deleted inserted replaced
13651:6776eeaa17f2 13652:a07dcc2c01bd
1303 aim_tlv_t *tlv; 1303 aim_tlv_t *tlv;
1304 struct aim_tlvlist_s *next; 1304 struct aim_tlvlist_s *next;
1305 } aim_tlvlist_t; 1305 } aim_tlvlist_t;
1306 1306
1307 /* TLV handling functions */ 1307 /* TLV handling functions */
1308 char *aim_tlv_getvalue_as_string(aim_tlv_t *tlv);
1309
1308 aim_tlv_t *aim_tlv_gettlv(aim_tlvlist_t *list, guint16 type, const int nth); 1310 aim_tlv_t *aim_tlv_gettlv(aim_tlvlist_t *list, guint16 type, const int nth);
1309 int aim_tlv_getlength(aim_tlvlist_t *list, guint16 type, const int nth); 1311 int aim_tlv_getlength(aim_tlvlist_t *list, guint16 type, const int nth);
1310 char *aim_tlv_getstr(aim_tlvlist_t *list, const guint16 type, const int nth); 1312 char *aim_tlv_getstr(aim_tlvlist_t *list, const guint16 type, const int nth);
1311 guint8 aim_tlv_get8(aim_tlvlist_t *list, const guint16 type, const int nth); 1313 guint8 aim_tlv_get8(aim_tlvlist_t *list, const guint16 type, const int nth);
1312 guint16 aim_tlv_get16(aim_tlvlist_t *list, const guint16 type, const int nth); 1314 guint16 aim_tlv_get16(aim_tlvlist_t *list, const guint16 type, const int nth);