ipa_proto: start_listen: use correct ok/error pattern

The ok path only returned the port without an "ok".
Also path back the ListenSock.

Change-Id: I9b317c13089fae2406f401a1f420623de9a2dffa
This commit is contained in:
Alexander Couzens 2023-07-10 19:43:15 +02:00 committed by Pau Espin Pedrol
parent bb49f95b7f
commit c26105e165
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ start_listen(LPort, NumServers, Opts) ->
{ok, ListenSock} ->
start_servers(NumServers, ListenSock, self()),
{ok, Port} = inet:port(ListenSock),
Port;
{ok, ListenSock, Port};
{error, Reason} ->
{error, Reason}
end.