libpurple/protocols/oscar/peer_proxy.c

branch
soc.2010.icq-tlc
changeset 30668
54e684b2d963
parent 25889
26d9ca30335c
child 30689
d7ebbdb28650
equal deleted inserted replaced
30667:68619fe61c8b 30668:54e684b2d963
166 166
167 peer_connection_finalize_connection(conn); 167 peer_connection_finalize_connection(conn);
168 } 168 }
169 else if (frame->type == PEER_PROXY_TYPE_ERROR) 169 else if (frame->type == PEER_PROXY_TYPE_ERROR)
170 { 170 {
171 if (byte_stream_empty(&frame->payload) >= 2) 171 if (byte_stream_bytes_left(&frame->payload) >= 2)
172 { 172 {
173 guint16 error; 173 guint16 error;
174 const char *msg; 174 const char *msg;
175 error = byte_stream_get16(&frame->payload); 175 error = byte_stream_get16(&frame->payload);
176 if (error == 0x000d) 176 if (error == 0x000d)

mercurial