diff options
author | Micael Karlberg <[email protected]> | 2019-07-18 16:42:24 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-18 16:42:24 +0200 |
commit | 645be105b93b33d6568d5fe6a781a51914fe7313 (patch) | |
tree | 3e774febf393159977804d153e22a489f6dd1100 | |
parent | 6c846678a1dbd705c63d0d3bd573db3daaacb5ec (diff) | |
download | otp-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
-rw-r--r-- | erts/emulator/nifs/common/socket_nif.c | 2 |
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 |