diff options
author | Raimo Niskanen <[email protected]> | 2016-06-08 09:56:04 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2016-06-08 14:45:32 +0200 |
commit | f429adba7e7a862b9949821b40aa3cba12455b3e (patch) | |
tree | eab986313b34e0acb67caafae26f3e3e985b65e1 /lib/kernel/src/local_udp.erl | |
parent | 2c9dba638a8bda92e3db2d5c07e6ba251330c7ca (diff) | |
download | otp-f429adba7e7a862b9949821b40aa3cba12455b3e.tar.gz otp-f429adba7e7a862b9949821b40aa3cba12455b3e.tar.bz2 otp-f429adba7e7a862b9949821b40aa3cba12455b3e.zip |
Remove internal state BOUND from inet_drv
Diffstat (limited to 'lib/kernel/src/local_udp.erl')
-rw-r--r-- | lib/kernel/src/local_udp.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/kernel/src/local_udp.erl b/lib/kernel/src/local_udp.erl index ebb4d2b33f..481a8c4910 100644 --- a/lib/kernel/src/local_udp.erl +++ b/lib/kernel/src/local_udp.erl @@ -59,7 +59,14 @@ open(0, Opts) -> when tuple_size(BAddr) =:= 2, element(1, BAddr) =:= ?FAMILY; BAddr =:= any -> inet:open( - Fd, BAddr, 0, SockOpts, ?PROTO, ?FAMILY, ?TYPE, ?MODULE); + Fd, + case BAddr of + any -> + undefined; + _ -> + BAddr + end, + 0, SockOpts, ?PROTO, ?FAMILY, ?TYPE, ?MODULE); {ok, _} -> exit(badarg) end. |