summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-04 01:13:24 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:24:25 +0300
commitb8ce5e9e1352abc45b08f92eb50890f202b1b230 (patch)
treef363d01b6181e4cfcdad109dc6d56873a73eaa15 /src
parent1c3269935f7ad144ab8af5d2129d030a27f4acb9 (diff)
downloadhercules-b8ce5e9e1352abc45b08f92eb50890f202b1b230.tar.gz
hercules-b8ce5e9e1352abc45b08f92eb50890f202b1b230.tar.bz2
hercules-b8ce5e9e1352abc45b08f92eb50890f202b1b230.tar.xz
hercules-b8ce5e9e1352abc45b08f92eb50890f202b1b230.zip
Disable packet validation in socket_datasync
Diffstat (limited to 'src')
-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);