1
0
mirror of https://github.com/skywind3000/kcp.git synced 2025-03-14 09:00:06 +08:00

retrun error code

This commit is contained in:
gyf19 2016-04-21 20:39:32 +08:00
parent 0ce0ecf567
commit 1afffd763d

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;