1
0
mirror of https://github.com/skywind3000/kcp.git synced 2025-04-24 04:10:34 +08:00

Merge pull request from gyf19/master

retrun error code
This commit is contained in:
Linwei 2016-04-21 20:50:26 +08:00
commit 5608f9df87

2
ikcp.c
View File

@ -689,7 +689,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
ikcp_log(kcp, IKCP_LOG_INPUT, "[RI] %d bytes", size);
}
if (data == NULL || size < 24) return 0;
if (data == NULL || size < 24) return -1;
while (1) {
IUINT32 ts, sn, len, una, conv;