NULL pointer dereference fixed in configuration load

introduced with latest commits
This commit is contained in:
z3APA3A 2015-12-07 19:06:16 +03:00
parent 55fb037b48
commit da52669995

View File

@ -659,7 +659,7 @@ void srvinit(struct srvparam * srv, struct clientparam *param){
srv->version = conf.paused;
srv->logfunc = conf.logfunc;
if(srv->logformat)myfree(srv->logformat);
srv->logformat = mystrdup(conf.logformat);
srv->logformat = conf.logformat? mystrdup(conf.logformat) : NULL;
srv->authfunc = conf.authfunc;
srv->usentlm = 0;
srv->maxchild = conf.maxchild;