| 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) |