mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-16 06:05:50 +08:00
Compare commits
2 Commits
e3ef7bb54a
...
982536b389
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
982536b389 | ||
|
|
bd4db18413 |
@ -419,7 +419,9 @@ void releaseparam(struct clientparam * param) {
|
||||
if(param->filters[param->nfilters].filter->filter_clear)
|
||||
(*param->filters[param->nfilters].filter->filter_clear)(param->filters[param->nfilters].data);
|
||||
}
|
||||
/* once: a second release must not give the slot back again */
|
||||
if(param->connlim) stopconnlims(param);
|
||||
param->connlim = 0;
|
||||
/* a slot held in the newest service on the listener after a reload */
|
||||
if(param->newsrv){
|
||||
slotrelease(param->newsrv);
|
||||
|
||||
@ -433,7 +433,9 @@ static void udpadopt(struct udpstate *st){
|
||||
if(param->filters[param->nfilters].filter->filter_clear)
|
||||
(*param->filters[param->nfilters].filter->filter_clear)(param->filters[param->nfilters].data);
|
||||
}
|
||||
/* counted again by the new service's authorization */
|
||||
if(param->connlim) stopconnlims(param);
|
||||
param->connlim = 0;
|
||||
param->bandlimfunc = NULL;
|
||||
param->bandlims[0] = param->bandlimsout[0] = NULL;
|
||||
param->trafcountfunc = NULL;
|
||||
|
||||
@ -182,7 +182,8 @@ size_t threadstacksize(int extra);
|
||||
#ifndef strncasecmp
|
||||
#define strncasecmp strnicmp
|
||||
#endif
|
||||
#define seterrno3(x) _set_errno(x)
|
||||
/* errno is WSAGetLastError() here */
|
||||
#define seterrno3(x) WSASetLastError(x)
|
||||
#else
|
||||
#define seterrno3(x) (errno = x)
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user