aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-07-18 16:42:24 +0200
committerMicael Karlberg <[email protected]>2019-07-18 16:42:24 +0200
commit645be105b93b33d6568d5fe6a781a51914fe7313 (patch)
tree3e774febf393159977804d153e22a489f6dd1100 /erts
parent6c846678a1dbd705c63d0d3bd573db3daaacb5ec (diff)
downloadotp-645be105b93b33d6568d5fe6a781a51914fe7313.tar.gz
otp-645be105b93b33d6568d5fe6a781a51914fe7313.tar.bz2
otp-645be105b93b33d6568d5fe6a781a51914fe7313.zip
[esock] Fixed a copy-and-paste error for bindtodevice
Fixed a copy-and-paste error for socket option bindtodevice. Incorrectly used SO_BROADCAST option instead. OTP-15904
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index 362e584bd3..485aa282c2 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -8212,7 +8212,7 @@ ERL_NIF_TERM nsetopt_lvl_sock_bindtodevice(ErlNifEnv* env,
ERL_NIF_TERM eVal)
{
return nsetopt_str_opt(env, descP,
- SOL_SOCKET, SO_BROADCAST,
+ SOL_SOCKET, SO_BINDTODEVICE,
IFNAMSIZ, eVal);
}
#endif