diff options
author | Micael Karlberg <[email protected]> | 2018-07-11 11:53:31 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-18 14:50:18 +0200 |
commit | 4d29dde851fb30d86c194961f93e148198ae456d (patch) | |
tree | f6a9051212424e10fe7650f29e26f7dcea894476 /erts | |
parent | 9b5560dbe50c377c8fc9b6a0c0c7b6c2dcf9f0de (diff) | |
download | otp-4d29dde851fb30d86c194961f93e148198ae456d.tar.gz otp-4d29dde851fb30d86c194961f93e148198ae456d.tar.bz2 otp-4d29dde851fb30d86c194961f93e148198ae456d.zip |
[socket-nif] Add value type check for the dontroute (socket) option
Diffstat (limited to 'erts')
-rw-r--r-- | erts/preloaded/src/socket.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index 3e7679daa1..a4efc2e38c 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -1948,6 +1948,8 @@ enc_setopt_value(socket, broadcast, V, _D, _T, _P) when is_boolean(V) -> V; enc_setopt_value(socket, debug, V, _D, _T, _P) when is_integer(V) -> V; +enc_setopt_value(socket, dontroute, V, _D, _T, _P) when is_boolean(V) -> + V; enc_setopt_value(socket, keepalive, V, _D, _T, _P) when is_boolean(V) -> V; enc_setopt_value(socket, linger, abort, D, T, P) -> |