comparison src/protocols/oscar/icq.c @ 2731:e9e624d8803e

[gaim-migrate @ 2744] eh committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 17 Nov 2001 02:50:06 +0000
parents e841b14b5b89
children efa3e7115cb5
comparison
equal deleted inserted replaced
2730:a9aabf1170f1 2731:e9e624d8803e
119 aim_bstream_t qbs; 119 aim_bstream_t qbs;
120 fu32_t ouruin; 120 fu32_t ouruin;
121 fu16_t cmdlen, cmd, reqid; 121 fu16_t cmdlen, cmd, reqid;
122 122
123 if (!(tl = aim_readtlvchain(bs)) || !(datatlv = aim_gettlv(tl, 0x0001, 1))) { 123 if (!(tl = aim_readtlvchain(bs)) || !(datatlv = aim_gettlv(tl, 0x0001, 1))) {
124 if (tl)
125 aim_freetlvchain(tl);
124 faimdprintf(sess, 0, "corrupt ICQ response\n"); 126 faimdprintf(sess, 0, "corrupt ICQ response\n");
125 return 0; 127 return 0;
126 } 128 }
127 129
128 aim_bstream_init(&qbs, datatlv->value, datatlv->length); 130 aim_bstream_init(&qbs, datatlv->value, datatlv->length);
161 163
162 if ((userfunc = aim_callhandler(sess, rx->conn, AIM_CB_FAM_ICQ, AIM_CB_ICQ_OFFLINEMSGCOMPLETE))) 164 if ((userfunc = aim_callhandler(sess, rx->conn, AIM_CB_FAM_ICQ, AIM_CB_ICQ_OFFLINEMSGCOMPLETE)))
163 ret = userfunc(sess, rx); 165 ret = userfunc(sess, rx);
164 } 166 }
165 167
168 aim_freetlvchain(tl);
169
166 return ret; 170 return ret;
167 } 171 }
168 172
169 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 173 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
170 { 174 {