mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Fix mqtt unit test broken ebb0dc14a7
Fixes: ebb0dc14a7
("tcp_recved: check for overflow and warn about too big values")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
f58324b576
commit
ba3a39957d
@ -94,6 +94,8 @@ START_TEST(basic_connect)
|
|||||||
p = pbuf_alloc(PBUF_RAW, sizeof(rxbuf), PBUF_REF);
|
p = pbuf_alloc(PBUF_RAW, sizeof(rxbuf), PBUF_REF);
|
||||||
fail_unless(p != NULL);
|
fail_unless(p != NULL);
|
||||||
p->payload = rxbuf;
|
p->payload = rxbuf;
|
||||||
|
/* since we hack the rx path, we have to hack the rx window, too: */
|
||||||
|
client->conn->rcv_wnd -= p->tot_len;
|
||||||
if (client->conn->recv(client->conn->callback_arg, client->conn, p, ERR_OK) != ERR_OK) {
|
if (client->conn->recv(client->conn->callback_arg, client->conn, p, ERR_OK) != ERR_OK) {
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user