z3APA3A 5 лет назад
Родитель
Сommit
c532958b9f
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/auth.c

+ 2 - 0
src/auth.c

@@ -804,6 +804,7 @@ int doauth(struct clientparam * param){
 						ac->sa = param->sincr;
 						if(conf.authcachetype&32) {
 							ac->sinsl = param-> sinsl;
+							SAPORT(ac->sinsl) = 0;
 						}
 
 						break;
@@ -819,6 +820,7 @@ int doauth(struct clientparam * param){
 						if((conf.authcachetype&4) && param->password) ac->password = mystrdup((char *)param->password);
 						if(conf.authcachetype&32) {
 							ac->sinsl = param->sinsl;
+							SAPORT(ac->sinsl) = 0;
 						}
 					}
 					ac->next = authc;