diff options
author | Fredrik Gustafsson <[email protected]> | 2013-05-16 10:00:14 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-05-16 10:00:14 +0200 |
commit | bbb2760fa436ae7e7b7d003252e83a24e4f6cb8a (patch) | |
tree | 616efb2e2df57509e418b4694f50ea8b0037f1e9 /lib/erl_interface/src/connect/ei_connect.c | |
parent | 1c18db4f7dae885481b35b4502c2695b208bf1d0 (diff) | |
parent | d7e9fafa45eb96e3c34e24f03476a42e474701f0 (diff) | |
download | otp-bbb2760fa436ae7e7b7d003252e83a24e4f6cb8a.tar.gz otp-bbb2760fa436ae7e7b7d003252e83a24e4f6cb8a.tar.bz2 otp-bbb2760fa436ae7e7b7d003252e83a24e4f6cb8a.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/erl_interface/src/connect/ei_connect.c')
-rw-r--r-- | lib/erl_interface/src/connect/ei_connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index 3ab86bb340..8f1f231b82 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -830,7 +830,8 @@ int ei_accept_tmo(ei_cnode* ec, int lfd, ErlConnect *conp, unsigned ms) error: EI_TRACE_ERR0("ei_accept","<- ACCEPT failed"); - closesocket(fd); + if (fd>=0) + closesocket(fd); return ERL_ERROR; } /* ei_accept */ |