提交 1f1e7844 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

msg len check

上级 6dba1706
......@@ -365,7 +365,7 @@ void *taosTransferDataViaTcp(void *argv) {
pHeader = (STaosHeader *)handle;
msgLen = (int32_t)htonl((uint32_t)pHeader->msgLen);
if (pHeader->tcp != 0 || msgLen < 1024) {
if (pHeader->tcp != 0 || msgLen < 100) {
tError("%s invalid handle:%p, connection shall be closed", pSet->label, pHeader);
} else {
SMonitor *pMonitor = (SMonitor *)calloc(1, sizeof(SMonitor));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册