Răsfoiți Sursa

Do not cache external port

z3APA3A 5 ani în urmă
părinte
comite
c532958b9f
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/auth.c

+ 2 - 0
src/auth.c

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