aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-05-03 08:13:58 +0200
committerJohn Högberg <[email protected]>2018-05-03 08:13:58 +0200
commit7588c6f850c59ef2fa338b38ac1cf141af4f69f2 (patch)
treefb09c33a2e38eed82111a263b6ce595c67ef1b36 /erts/etc/common
parent6ab00dd854b70e0a4ad06fa802a5ebb1b4871721 (diff)
parent26eea10dda1f316045e58e30a126feafe1843d3a (diff)
downloadotp-7588c6f850c59ef2fa338b38ac1cf141af4f69f2.tar.gz
otp-7588c6f850c59ef2fa338b38ac1cf141af4f69f2.tar.bz2
otp-7588c6f850c59ef2fa338b38ac1cf141af4f69f2.zip
Merge branch 'maint'
* maint: Updated OTP version Update release notes Update version numbers ssl: Prepare for release ssl: Proper handling of clients that choose to send an empty answer to a certificate request heart: Use ntohs instead of manual conversion
Diffstat (limited to 'erts/etc/common')
-rw-r--r--erts/etc/common/heart.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/etc/common/heart.c b/erts/etc/common/heart.c
index bc353e384e..8f1e89b638 100644
--- a/erts/etc/common/heart.c
+++ b/erts/etc/common/heart.c
@@ -825,11 +825,8 @@ write_message(fd, mp)
int fd;
struct msg *mp;
{
- int len;
- char* tmp;
+ int len = ntohs(mp->len);
- tmp = (char*) &(mp->len);
- len = (*tmp * 256) + *(tmp+1);
if ((len == 0) || (len > MSG_BODY_SIZE)) {
return MSG_HDR_SIZE;
} /* cc68k wants (char *) */