summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-05-05 23:23:05 +0200
committerGitHub <noreply@github.com>2019-05-05 23:23:05 +0200
commitb1970eac663b641b93e30ec24f2b3d8ee02ce8f6 (patch)
treef363d01b6181e4cfcdad109dc6d56873a73eaa15 /src/common/socket.c
parentaa79da0e801a536b22911d47fd12df351c36214e (diff)
parentb8ce5e9e1352abc45b08f92eb50890f202b1b230 (diff)
downloadhercules-b1970eac663b641b93e30ec24f2b3d8ee02ce8f6.tar.gz
hercules-b1970eac663b641b93e30ec24f2b3d8ee02ce8f6.tar.bz2
hercules-b1970eac663b641b93e30ec24f2b3d8ee02ce8f6.tar.xz
hercules-b1970eac663b641b93e30ec24f2b3d8ee02ce8f6.zip
Merge pull request #2432 from 4144/updatepackets
Update packets up to 2019-05-02
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);