diff options
author | Sverker Eriksson <[email protected]> | 2018-11-23 18:49:22 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-11-23 18:49:22 +0100 |
commit | 044d974adfe7f244374bf534b5dae1a90c58239c (patch) | |
tree | b057a0966b208c70d0f1edeae574384a3c4db3a4 /lib/kernel/src | |
parent | 377f19f25aeec6939a6728bd0c4910086c22ccdc (diff) | |
download | otp-044d974adfe7f244374bf534b5dae1a90c58239c.tar.gz otp-044d974adfe7f244374bf534b5dae1a90c58239c.tar.bz2 otp-044d974adfe7f244374bf534b5dae1a90c58239c.zip |
kernel: Fix bug in net_kernel for connection attempt from self
net_kernel crashed due to invalid return from handle_info.
Could only happen if erts_internal:new_connection fails
due to non-atom Node or if Node is the own node name.
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/net_kernel.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index 3cf11fd7b1..a9dc77837e 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -808,7 +808,8 @@ handle_info({AcceptPid, {accept_pending,MyNode,Node,Address,Type}}, State) -> _:_ -> error_logger:error_msg("~n** Cannot get connection id for node ~w~n", [Node]), - AcceptPid ! {self(),{accept_pending,nok_pending}} + AcceptPid ! {self(),{accept_pending,nok_pending}}, + {noreply, State} end end; |