fixed bug #24440: TCP connection close problem on 64-bit host by moving accept callback function pointer to TCP_PCB_COMMON

This commit is contained in:
goldsimon
2009-02-16 16:50:58 +00:00
parent d2d33cb984
commit d976c8e85f
3 changed files with 24 additions and 22 deletions

View File

@@ -1114,7 +1114,7 @@ void
tcp_accept(struct tcp_pcb *pcb,
err_t (* accept)(void *arg, struct tcp_pcb *newpcb, err_t err))
{
((struct tcp_pcb_listen *)pcb)->accept = accept;
pcb->accept = accept;
}
#endif /* LWIP_CALLBACK_API */