aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/connect/ei_connect.c
diff options
context:
space:
mode:
authorAlexandre Snarskii <[email protected]>2016-10-13 15:02:36 +0300
committerAlexandre Snarskii <[email protected]>2016-10-13 15:02:36 +0300
commite4cba54c5c6fc2b099485947ca8fca09a3ad26c9 (patch)
tree8596933f87df1f2154c695c8f98aafde553be394 /lib/erl_interface/src/connect/ei_connect.c
parent9c013e2f9f7e32de38dc9640038aee1840d68e04 (diff)
downloadotp-e4cba54c5c6fc2b099485947ca8fca09a3ad26c9.tar.gz
otp-e4cba54c5c6fc2b099485947ca8fca09a3ad26c9.tar.bz2
otp-e4cba54c5c6fc2b099485947ca8fca09a3ad26c9.zip
use only two low bits of creation
Diffstat (limited to 'lib/erl_interface/src/connect/ei_connect.c')
-rw-r--r--lib/erl_interface/src/connect/ei_connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c
index 624100ad49..c193fd804a 100644
--- a/lib/erl_interface/src/connect/ei_connect.c
+++ b/lib/erl_interface/src/connect/ei_connect.c
@@ -423,7 +423,7 @@ int ei_connect_xinit(ei_cnode* ec, const char *thishostname,
}
#endif /* _REENTRANT */
- ec->creation = creation;
+ ec->creation = creation & 0x3; /* 2 bits */
if (cookie) {
if (strlen(cookie) >= sizeof(ec->ei_connect_cookie)) {
@@ -462,7 +462,7 @@ int ei_connect_xinit(ei_cnode* ec, const char *thishostname,
strcpy(ec->self.node,thisnodename);
ec->self.num = 0;
ec->self.serial = 0;
- ec->self.creation = creation;
+ ec->self.creation = creation & 0x3; /* 2 bits */
if ((dbglevel = getenv("EI_TRACELEVEL")) != NULL ||
(dbglevel = getenv("ERL_DEBUG_DIST")) != NULL)