aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2009-12-17 12:20:14 +0000
committerErlang/OTP <[email protected]>2009-12-17 12:20:14 +0000
commitca9557b50d146b5fe32b9aab3647ee25f4d05824 (patch)
treecf401cf52a4f394f5337080c72fce34e236bf512 /erts/emulator
parentae338a2aab4ac3d9a9c60d2c3e00f76ff8d3c25a (diff)
downloadotp-ca9557b50d146b5fe32b9aab3647ee25f4d05824.tar.gz
otp-ca9557b50d146b5fe32b9aab3647ee25f4d05824.tar.bz2
otp-ca9557b50d146b5fe32b9aab3647ee25f4d05824.zip
Send up AssocID as unsigned
It must be unsigned so that prim_inet will not reject when it is sent down again. (Suggested fix by Raimo for a bug reported by Simon Cornish.)
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index b7b577da5b..c6e23ee647 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -1205,8 +1205,8 @@ static void *realloc_wrapper(void *current, size_t size){
/* For AssocID, 4 bytes should be enough -- checked by "init": */
# define GET_ASSOC_ID get_int32
# define ASSOC_ID_LEN 4
-# define LOAD_ASSOC_ID LOAD_INT
-# define LOAD_ASSOC_ID_CNT LOAD_INT_CNT
+# define LOAD_ASSOC_ID LOAD_UINT
+# define LOAD_ASSOC_ID_CNT LOAD_UINT_CNT
# define SCTP_ANC_BUFF_SIZE INET_DEF_BUFFER/2 /* XXX: not very good... */
#endif