fix crash DDL
This commit is contained in:
parent
457c544dc7
commit
4bc481663a
|
@ -405,7 +405,7 @@ static void clientWrite(SCliConn* pConn) {
|
|||
pConn->secured = 1; // del later
|
||||
|
||||
pHead = (STransMsgHead*)buf;
|
||||
pHead->secured = 0;
|
||||
pHead->secured = 1;
|
||||
msgLen += sizeof(STransUserMsg);
|
||||
}
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ static void uvHandleReq(SSrvConn* pConn) {
|
|||
p->chandle = NULL;
|
||||
|
||||
STransMsgHead* pHead = (STransMsgHead*)p->msg;
|
||||
if (pHead->secured == 0) {
|
||||
if (pHead->secured == 1) {
|
||||
STransUserMsg* uMsg = (p->msg + p->msgLen - sizeof(STransUserMsg));
|
||||
memcpy(pConn->user, uMsg->user, tListLen(uMsg->user));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue