mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
NULL pointer dereference fixed in configuration load
introduced with latest commits
This commit is contained in:
parent
55fb037b48
commit
da52669995
@ -659,7 +659,7 @@ void srvinit(struct srvparam * srv, struct clientparam *param){
|
|||||||
srv->version = conf.paused;
|
srv->version = conf.paused;
|
||||||
srv->logfunc = conf.logfunc;
|
srv->logfunc = conf.logfunc;
|
||||||
if(srv->logformat)myfree(srv->logformat);
|
if(srv->logformat)myfree(srv->logformat);
|
||||||
srv->logformat = mystrdup(conf.logformat);
|
srv->logformat = conf.logformat? mystrdup(conf.logformat) : NULL;
|
||||||
srv->authfunc = conf.authfunc;
|
srv->authfunc = conf.authfunc;
|
||||||
srv->usentlm = 0;
|
srv->usentlm = 0;
|
||||||
srv->maxchild = conf.maxchild;
|
srv->maxchild = conf.maxchild;
|
||||||
|
Loading…
Reference in New Issue
Block a user