temporary patch for bad recvfrom return values, plus removal of old includes

This commit is contained in:
Joseph Henry
2017-03-08 15:13:13 -08:00
parent 905a822b05
commit f2a5b09179
5 changed files with 4 additions and 6 deletions

View File

@@ -316,7 +316,7 @@ int (*realclose)(CLOSE_SIG);
else {
perror("read:\n");
}
return tmpsz;
return tmpsz <= ZT_MAX_MTU ? tmpsz : -1;
}
//#endif