aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-07-11 11:53:31 +0200
committerMicael Karlberg <[email protected]>2018-09-18 14:50:18 +0200
commit4d29dde851fb30d86c194961f93e148198ae456d (patch)
treef6a9051212424e10fe7650f29e26f7dcea894476 /erts
parent9b5560dbe50c377c8fc9b6a0c0c7b6c2dcf9f0de (diff)
downloadotp-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.erl2
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) ->