aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2011-09-28 10:18:26 +0200
committerRaimo Niskanen <[email protected]>2011-11-17 15:42:14 +0100
commit12104f3c92b89d3146204f3b620cd1192939b267 (patch)
tree3eba3cf2f4c1c30ed41b01c23befa54bac8ebf04 /erts/emulator/drivers
parentc501ca26c01d222af4b05b1732059a7a9684b1c3 (diff)
downloadotp-12104f3c92b89d3146204f3b620cd1192939b267.tar.gz
otp-12104f3c92b89d3146204f3b620cd1192939b267.tar.bz2
otp-12104f3c92b89d3146204f3b620cd1192939b267.zip
erts: Fix SCTP decoding byteorder bug for adaptation_ind
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index 097fe78e19..ed6e17212f 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -6764,7 +6764,7 @@ static int sctp_fill_opts(inet_descriptor* desc, char* buf, int buflen,
2*LOAD_ATOM_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT);
i = LOAD_ATOM (spec, i, am_sctp_adaptation_layer);
i = LOAD_ATOM (spec, i, am_sctp_setadaptation);
- i = LOAD_INT (spec, i, ad.ssb_adaptation_ind);
+ i = LOAD_INT (spec, i, sock_ntohl(ad.ssb_adaptation_ind));
i = LOAD_TUPLE (spec, i, 2);
i = LOAD_TUPLE (spec, i, 2);
break;