[modify]
This commit is contained in:
parent
ff3e4e4fbd
commit
df223f7573
|
@ -30,7 +30,7 @@ void httpCreateSession(HttpContext *pContext, void *taos) {
|
||||||
pthread_mutex_lock(&server->serverMutex);
|
pthread_mutex_lock(&server->serverMutex);
|
||||||
|
|
||||||
HttpSession session;
|
HttpSession session;
|
||||||
memset(&session, 0, sizeof(HttpSession);
|
memset(&session, 0, sizeof(HttpSession));
|
||||||
session.taos = taos;
|
session.taos = taos;
|
||||||
session.refCount = 1;
|
session.refCount = 1;
|
||||||
snprintf(session.id, HTTP_SESSION_ID_LEN, "%s.%s", pContext->user, pContext->pass);
|
snprintf(session.id, HTTP_SESSION_ID_LEN, "%s.%s", pContext->user, pContext->pass);
|
||||||
|
|
Loading…
Reference in New Issue