From 92a241a29e1f52a59d6fc9b9d8d67130fb4f05b1 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 12 Nov 2015 10:40:49 +0100 Subject: [PATCH] Fixed bug #46365: tcp_accept_null() should call tcp_abort() --- CHANGELOG | 8 ++++++++ src/core/tcp.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 28a4f309..a989eb6e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,11 @@ HISTORY ++ New features: + 2015-11-12: Dirk Ziegelmeier + * Implement possibility to declare private memory pools. This is useful to + decouple some apps from the core (SNMP stack) or make contrib app useage + simpler (httpserver_raw) + 2015-10-09: Simon Goldschmidt * started to move "private" header files containing implementation details to "lwip/priv/" include directory to seperate the API from the implementation. @@ -287,6 +292,9 @@ HISTORY ++ Bugfixes: + 2015-11-12: fix by Valery Ushakov + * tcp_in.c: fixed bug #46365 tcp_accept_null() should call tcp_abort() + 2015-10-02: Dirk Ziegelmeier/Simon Goldschmidt * snmp: cleaned up snmp structs API (fixed race conditions from bug #46089, reduce ram/rom usage of tables): incompatible change for private MIBs diff --git a/src/core/tcp.c b/src/core/tcp.c index eaef4977..ed713fe7 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -511,6 +511,8 @@ tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err) LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(err); + tcp_abort(pcb); + return ERR_ABRT; } #endif /* LWIP_CALLBACK_API */