aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/local_udp.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-06-09 09:27:05 +0200
committerRaimo Niskanen <[email protected]>2016-06-09 09:27:05 +0200
commit2da08a037e4315a1010769b22610ca81462d813d (patch)
treece14def3320bcbdf897a4a7a4a52f65db490c8d4 /lib/kernel/src/local_udp.erl
parent7f2a5750d896febf39a51c488f57c4235e34a040 (diff)
parent16e895198a541ccbbbe6c970bd9572cf347a9c77 (diff)
downloadotp-2da08a037e4315a1010769b22610ca81462d813d.tar.gz
otp-2da08a037e4315a1010769b22610ca81462d813d.tar.bz2
otp-2da08a037e4315a1010769b22610ca81462d813d.zip
Merge branch 'raimo/uds-support/OTP-13643'
* raimo/uds-support/OTP-13643: Document the local (unix) address family Remove internal state BOUND from inet_drv
Diffstat (limited to 'lib/kernel/src/local_udp.erl')
-rw-r--r--lib/kernel/src/local_udp.erl9
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.