commit | 1f3c18fcbe0a62643252e6ec2b72c995eefd02de | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sun Jan 01 15:41:53 2017 +0800 |
committer | Dirk Ziegelmeier <dirk@ziegelmeier.net> | Sun Jan 01 19:53:51 2017 +0100 |
tree | 6d0f60d4c9e22fd0341c5299b420b9cafdfc056c | |
parent | edfeab7932070f71e25f4e680660843a307702c8 [diff] |
tcp: Make tcp_listen_with_backlog_and_err return NULL if the address/port is already used The caller of tcp_listen_with_backlog_and_err() usually check if the return pcb is NULL before checking the err reason. I think the commit adding tcp_listen_with_backlog_and_err() accidently change the behavior, Fix it. Fixes: 98fc82fa7128 ("added function tcp_listen_with_backlog_and_err() to get the error reason when listening fails") Signed-off-by: Axel Lin <axel.lin@ingics.com>