Based on patch from Dmitry Potapov, bug#19225.

Add asserts inside bind, connect and sendto to check input parameters. Remove excessive set_errno() calls after get_socket(), because errno is set inside of get_socket(). Move last sock_set_errno() inside lwip_close.
This commit is contained in:
fbernon
2007-03-11 16:53:37 +00:00
parent 5c65d4733b
commit 9b143dd5dc
2 changed files with 27 additions and 40 deletions

View File

@@ -60,6 +60,12 @@ HISTORY
++ Bug fixes:
2007-03-11 Frédéric Bernon (based on patch from Dmitry Potapov)
* sockets.c: Add asserts inside bind, connect and sendto to check input
parameters. Remove excessive set_errno() calls after get_socket(), because
errno is set inside of get_socket(). Move last sock_set_errno() inside
lwip_close.
2007-03-09 Simon Goldschmidt
* memp.c: Fixed bug #11400: New etharp queueing introduced bug: memp_memory
was allocated too small.