mirror of
https://github.com/3proxy/3proxy.git
synced 2026-09-27 17:51:29 +00:00
fix socket leak on failed UDPASSOC parent
This commit is contained in:
parent
aea9ff8c94
commit
8de2be3b3b
1 changed files with 4 additions and 0 deletions
|
|
@ -159,6 +159,10 @@ int checkACL(struct clientparam * param){
|
|||
if(!res) break;
|
||||
if(param->remsock != INVALID_SOCKET) param->srv->so._closesocket(param->sostate, param->remsock);
|
||||
param->remsock = INVALID_SOCKET;
|
||||
if(param->ctrlsocksrv != INVALID_SOCKET) {
|
||||
param->srv->so._closesocket(param->sostate, param->ctrlsocksrv);
|
||||
param->ctrlsocksrv = INVALID_SOCKET;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue