libpurple/protocols/jabber/bosh.c

branch
release-2.x.y
changeset 36256
a437550a9308
parent 35264
5b9619d1dec4
child 36257
c5445f25f90f
child 38256
035f00c4fd87
equal deleted inserted replaced
36255:a3fe30a2666b 36256:a437550a9308
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);

mercurial