From 645be105b93b33d6568d5fe6a781a51914fe7313 Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Thu, 18 Jul 2019 16:42:24 +0200 Subject: [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 --- erts/emulator/nifs/common/socket_nif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts') 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 -- cgit v1.2.3