mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-19 22:20:10 +00:00
proxy: credentials of an earlier request not inherited by the next
Some checks failed
C/C++ CI Linux / ubuntu-24.04-arm (push) Has been cancelled
C/C++ CI Linux / ubuntu-latest (push) Has been cancelled
C/C++ CI MacOS / macos-15 (push) Has been cancelled
C/C++ CI Windows / windows-2022 (push) Has been cancelled
C/C++ CI cmake / macos-15 (push) Has been cancelled
C/C++ CI cmake / ubuntu-24.04-arm (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (push) Has been cancelled
C/C++ CI cmake / windows-2022 (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
Some checks failed
C/C++ CI Linux / ubuntu-24.04-arm (push) Has been cancelled
C/C++ CI Linux / ubuntu-latest (push) Has been cancelled
C/C++ CI MacOS / macos-15 (push) Has been cancelled
C/C++ CI Windows / windows-2022 (push) Has been cancelled
C/C++ CI cmake / macos-15 (push) Has been cancelled
C/C++ CI cmake / ubuntu-24.04-arm (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (push) Has been cancelled
C/C++ CI cmake / windows-2022 (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
This commit is contained in:
parent
5aa3886eb8
commit
d82b780dda
1 changed files with 21 additions and 0 deletions
21
src/proxy.c
21
src/proxy.c
|
|
@ -314,6 +314,27 @@ for(;;){
|
|||
clhdrofs_req = -1;
|
||||
param->nolongdatfilter = 0;
|
||||
|
||||
/* What the request brought belongs to it alone. A connection can carry
|
||||
a request after another's, so the credentials of an earlier request
|
||||
decide nothing for this one. */
|
||||
if(param->username){
|
||||
free(param->username);
|
||||
param->username = NULL;
|
||||
}
|
||||
if(param->password){
|
||||
free(param->password);
|
||||
param->password = NULL;
|
||||
}
|
||||
param->pwtype = 0;
|
||||
if(param->extusername){
|
||||
free(param->extusername);
|
||||
param->extusername = NULL;
|
||||
}
|
||||
if(param->extpassword){
|
||||
free(param->extpassword);
|
||||
param->extpassword = NULL;
|
||||
}
|
||||
|
||||
|
||||
if(keepalive && (param->cliinbuf == param->clioffset) && (param->remsock != INVALID_SOCKET)){
|
||||
memset(fds, 0, sizeof(fds));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue