Skip to content

Commit

Permalink
Send up AssocID as unsigned
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
bjorng authored and Erlang/OTP committed Dec 17, 2009
1 parent ae338a2 commit ca9557b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erts/emulator/drivers/common/inet_drv.c
Expand Up @@ -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

Expand Down

0 comments on commit ca9557b

Please sign in to comment.