ソースを参照

NULL pointer dereference fixed in configuration load

introduced with latest commits
z3APA3A 10 年 前
コミット
da52669995
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/proxymain.c

+ 1 - 1
src/proxymain.c

@@ -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;