Skip to content

Commit

Permalink
Merge pull request #364 from batuzovk/sid-cookie-order
Browse files Browse the repository at this point in the history
Fix argument order in some userlist_clnt_delete_cookie calls
  • Loading branch information
blackav authored Oct 11, 2024
2 parents 30c82a7 + c16fc40 commit 4dfbec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/new_server_html.c
Original file line number Diff line number Diff line change
Expand Up @@ -7973,8 +7973,8 @@ priv_logout(FILE *fout,
return error_page(fout, phr, 0, NEW_SRV_ERR_USERLIST_SERVER_DOWN);
userlist_clnt_delete_cookie(ul_conn, phr->user_id,
phr->contest_id,
phr->client_key,
phr->session_id);
phr->session_id,
phr->client_key);
snprintf(urlbuf, sizeof(urlbuf),
"%s?contest_id=%d&locale_id=%d&role=%d",
phr->self_url, phr->contest_id, phr->locale_id, phr->role);
Expand Down
4 changes: 2 additions & 2 deletions lib/super_html_4.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ cmd_logout(
if (phr->userlist_clnt) {
userlist_clnt_delete_cookie(phr->userlist_clnt, phr->user_id,
0,
phr->client_key,
phr->session_id);
phr->session_id,
phr->client_key);
}
// FIXME: release other session-related resources
phr->session_id = 0;
Expand Down

0 comments on commit 4dfbec6

Please sign in to comment.