Parcourir la source

Fix: 'extip' may fail with 9 error code

z3APA3A il y a 9 ans
Parent
commit
4e4f71712d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/auth.c

+ 2 - 2
src/auth.c

@@ -317,8 +317,8 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
 		connected = 1;
 	}
 
-	if(!connected) return 9;
-	return (redir)?clientnegotiate(redir, param, (struct sockaddr *)&param->req):0;
+	if(!connected || !redir) return 0;
+	return clientnegotiate(redir, param, (struct sockaddr *)&param->req);
 }
 
 int IPInentry(struct sockaddr *sa, struct iplist *ipentry){