Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.3.5] [authserver] Unused variable in AuthSession #13217

Closed
Nefarion opened this issue Sep 25, 2014 · 3 comments
Closed

[3.3.5] [authserver] Unused variable in AuthSession #13217

Nefarion opened this issue Sep 25, 2014 · 3 comments

Comments

@Nefarion
Copy link

bool AuthSession._isAuthenticated (authserver project) is only written to, but never read from, so i wanted to know if it is really necessary to have it there.

It is used twice:
AuthSession::HandleLogonProof():574
AuthSession::HandleReconnectProof():725

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Nefarion Nefarion changed the title Unused variable in authserver [3.3.5] [authserver] Unused variable in AuthSession Sep 25, 2014
@Shauren
Copy link
Member

Shauren commented Sep 25, 2014

It should be used to check access to REALM_LIST packet (this was done before boost, maybe it got lost)

@Nefarion
Copy link
Author

I already wondered why noone was checking for authed status in that function, would have been my next question :)
👍

Edit: This commit removed the check

@ghost
Copy link

ghost commented Jan 31, 2016

Interesting. What would the advantage be of removing https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/authserver/Server/AuthSession.h#L74 if it is proven to be unused?

Shauren added a commit that referenced this issue Feb 14, 2016
* Changed all db queries to async
* Added buffer length checks
* Only allow one challenge/proof packet per socket lifetime

Closes #13217
Closes #16602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants