Skip to content

Commit

Permalink
AUTHENTICATION: Process userinfo during initial connection
Browse files Browse the repository at this point in the history
Userinfo also isn't re-sent by ezquake when responding to a
  challenge, so process it before responding with methods.
  • Loading branch information
meag committed Oct 15, 2018
1 parent 80f825d commit 506938f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forward_pending.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ static qbool SV_CheckForQTVRequest(cluster_t *cluster, oproxy_t *pend)

pend->authenticated = SV_QTVValidateAuthentication(authmethod, password, pend->authchallenge, qtv_password.string);

if (userinfo[0]) {
Info_Convert(&pend->ctx, userinfo);
}

if (!pend->authenticated) {
if (authmethod == QTVAM_CCITT && !password[0]) {
Net_ProxyPrintf(
Expand Down Expand Up @@ -608,7 +612,6 @@ static qbool SV_CheckForQTVRequest(cluster_t *cluster, oproxy_t *pend)
"BEGIN: %s\n\n", QTV_SV_HEADER(pend, QTV_VERSION), qtv->server);
}

Info_Convert(&pend->ctx, userinfo);
Prox_FixName(qtv, pend);

// Send message to all proxies what we have new client.
Expand Down

0 comments on commit 506938f

Please sign in to comment.