Parcourir la source

Compile error in last commit corrected

z3APA3A il y a 5 ans
Parent
commit
19eef46d7e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/auth.c

+ 2 - 2
src/auth.c

@@ -804,7 +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;
+							*SAPORT(&ac->sinsl) = 0;
 						}
 						}
 
 
 						break;
 						break;
@@ -820,7 +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;
+							*SAPORT(&ac->sinsl) = 0;
 						}
 						}
 					}
 					}
 					ac->next = authc;
 					ac->next = authc;