diff options
author | Micael Karlberg <[email protected]> | 2019-04-01 17:51:37 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-04-17 16:56:33 +0200 |
commit | 009c2f0adcc118e19d57df214d27fdcce44c33f5 (patch) | |
tree | 9bdb0a990335a4bf775964fa2b99e266e5cac856 /erts | |
parent | 4db60424c21ee767ad78be14edd94dd7ab3a1884 (diff) | |
download | otp-009c2f0adcc118e19d57df214d27fdcce44c33f5.tar.gz otp-009c2f0adcc118e19d57df214d27fdcce44c33f5.tar.bz2 otp-009c2f0adcc118e19d57df214d27fdcce44c33f5.zip |
[socket] Building term with terms from different env
When building the (accept) select message, used terms
from different environments, which is not allowed.
OTP-15496
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/nifs/common/socket_nif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c index 0f1b11f428..dd41123939 100644 --- a/erts/emulator/nifs/common/socket_nif.c +++ b/erts/emulator/nifs/common/socket_nif.c @@ -5258,7 +5258,7 @@ ERL_NIF_TERM naccept_listening_error(ErlNifEnv* env, accRef); descP->currentAcceptorP = &descP->currentAcceptor; res = naccept_busy_retry(env, descP, - sockRef, descP->currentAcceptor.ref, + sockRef, accRef, NULL, SOCKET_STATE_ACCEPTING); } } else { @@ -5518,7 +5518,7 @@ static ERL_NIF_TERM naccept_busy_retry(ErlNifEnv* env, ESockDescriptor* descP, ERL_NIF_TERM sockRef, - ERL_NIF_TERM accRef, // Not needed + ERL_NIF_TERM accRef, ErlNifPid* pid, unsigned int nextState) { |