Skip to content
Commit b2e29fe0 authored by Noah Olson's avatar Noah Olson Committed by Carles Cufí
Browse files

net: tcp: fix ECONNREFUSED not reported by zsock_connect



When a TCP connection is refused during zsock_connect, errno is set
to -ENOTCONN, but errno should be set to -ECONNREFUSED. This change
causes the ECONNREFUSED status to be propagated from tcp_in to
net_tcp_connect, which eventually causes errno to be set
to -ECONNREFUSED.

Signed-off-by: default avatarNoah Olson <noah@wavelynx.com>
parent e7786914
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment