From 124ca0fed2d46410cdb74e9e806220d3f7b1d31f Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 22 Mar 2010 10:06:49 +0000 Subject: [PATCH] tcp_listen() did not copy the pcb's prio --- CHANGELOG | 3 +++ src/core/tcp.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 9eb5dfa0..eaacd903 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -169,6 +169,9 @@ HISTORY ++ Bugfixes: + 2010-03-22: Simon Goldschmidt + * tcp.c: tcp_listen() did not copy the pcb's prio. + 2010-03-19: Simon Goldschmidt * snmp_msg.c: Fixed bug #29256: SNMP Trap address was not correctly set diff --git a/src/core/tcp.c b/src/core/tcp.c index f8c1fd73..ed8a1080 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -484,6 +484,7 @@ tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) lpcb->callback_arg = pcb->callback_arg; lpcb->local_port = pcb->local_port; lpcb->state = LISTEN; + lpcb->prio = pcb->prio; lpcb->so_options = pcb->so_options; lpcb->so_options |= SOF_ACCEPTCONN; lpcb->ttl = pcb->ttl; @@ -1072,7 +1073,7 @@ tcp_kill_prio(u8_t prio) LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - } + } } /** @@ -1098,7 +1099,7 @@ tcp_kill_timewait(void) LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - } + } } /**