| 1102 purple_connection_error_reason(conn->bosh->js->gc, |
1102 purple_connection_error_reason(conn->bosh->js->gc, |
| 1103 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
1103 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
| 1104 tmp); |
1104 tmp); |
| 1105 g_free(tmp); |
1105 g_free(tmp); |
| 1106 return; |
1106 return; |
| 1107 } else if (ret < len) { |
1107 } else if ((size_t)ret < len) { |
| 1108 if (ret < 0) |
1108 if (ret < 0) |
| 1109 ret = 0; |
1109 ret = 0; |
| 1110 if (conn->writeh == 0) |
1110 if (conn->writeh == 0) |
| 1111 conn->writeh = purple_input_add(conn->psc ? conn->psc->fd : conn->fd, |
1111 conn->writeh = purple_input_add(conn->psc ? conn->psc->fd : conn->fd, |
| 1112 PURPLE_INPUT_WRITE, http_connection_send_cb, conn); |
1112 PURPLE_INPUT_WRITE, http_connection_send_cb, conn); |