From 478ccee5fc48245fa6c576b7365f12391eb09d7d Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 26 Nov 2009 16:44:16 +0000 Subject: [PATCH] tcp_rexmit(): no need to call tcp_output, since always called from tcp_input and thus tcp_output always returns without sending (prevent confusion by thinking data was sent while in tcp_rexmit!) --- src/core/tcp_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 7d06f1cd..9bc84442 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -864,7 +864,8 @@ tcp_rexmit(struct tcp_pcb *pcb) /* Do the actual retransmission. */ snmp_inc_tcpretranssegs(); - tcp_output(pcb); + /* No need to call tcp_output: we are always called from tcp_input() + and thus tcp_output directly returns. */ }