summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-14 18:47:06 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-14 18:47:06 -0300
commitb3fe6ce98429acd80a89722b726cc70b69291e20 (patch)
tree67cc145d0dc64dd2acee5efec63dea11d017b31c /src/common/socket.c
parent5184db0b3b8feaba01473857feab8aedc16ae573 (diff)
parentce2dbb6acdc559ec256d1f9f9a779b8283064708 (diff)
downloadhercules-b3fe6ce98429acd80a89722b726cc70b69291e20.tar.gz
hercules-b3fe6ce98429acd80a89722b726cc70b69291e20.tar.bz2
hercules-b3fe6ce98429acd80a89722b726cc70b69291e20.tar.xz
hercules-b3fe6ce98429acd80a89722b726cc70b69291e20.zip
Merge branch 'master' of https://gitlab.com/evol/hercules
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index dc5b06da0..8ee4f06e2 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1856,7 +1856,7 @@ static void socket_datasync(int fd, bool send)
WFIFOL(fd, 4 + ( i * 4 ) ) = data_list[i].length;
}
- WFIFOSET(fd, p_len);
+ WFIFOSET2(fd, p_len);
} else {
for( i = 0; i < alen; i++ ) {
if( RFIFOL(fd, 4 + (i * 4) ) != data_list[i].length ) {
@@ -1865,7 +1865,7 @@ static void socket_datasync(int fd, bool send)
WFIFOW(fd, 0) = 0x2b0a;
WFIFOW(fd, 2) = 8;
WFIFOL(fd, 4) = 0;
- WFIFOSET(fd, 8);
+ WFIFOSET2(fd, 8);
sockt->flush(fd);
/* shut down */
ShowFatalError("Servers are out of sync! recompile from scratch (%d)\n",i);