Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/apps/lwiperf/lwiperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ lwiperf_tcp_accept(void *arg, struct tcp_pcb *newpcb, err_t err)
tcp_arg(newpcb, conn);
tcp_recv(newpcb, lwiperf_tcp_recv);
tcp_poll(newpcb, lwiperf_tcp_poll, 2U);
tcp_err(conn->conn_pcb, lwiperf_tcp_err);
tcp_err(newpcb, lwiperf_tcp_err);

if (s->specific_remote) {
/* this listener belongs to a client, so make the client the master of the newly created connection */
Expand Down Expand Up @@ -836,7 +836,7 @@ lwiperf_abort(void *lwiperf_session)
if (last != NULL) {
last->next = i;
}
LWIPERF_FREE(lwiperf_state_tcp_t, dealloc); /* @todo: type? */
lwiperf_tcp_close((lwiperf_state_tcp_t *)dealloc, LWIPERF_TCP_ABORTED_LOCAL);
} else {
last = i;
i = i->next;
Expand Down