mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 12:15:15 +00:00
Fix truncated username
This commit is contained in:
parent
f2a438c33a
commit
c212844616
1 changed files with 1 additions and 1 deletions
|
|
@ -381,7 +381,7 @@ static int getAuthorizedUser(const struct mg_connection *conn,
|
|||
snprintf(key, sizeof(key), "sessions.%s", session_id);
|
||||
|
||||
username[0] = '\0';
|
||||
if((ntop->getRedis()->get(key, username, sizeof(username), true) < 0) || (!username[0])) {
|
||||
if((ntop->getRedis()->get(key, username, username_len, true) < 0) || (!username[0])) {
|
||||
ntop->getTrace()->traceEvent(TRACE_INFO, "[HTTP] Session %s is expired", session_id);
|
||||
return(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue