Fix: 'extip' may fail with 9 error code

This commit is contained in:
z3APA3A 2016-08-16 15:21:02 +03:00
parent 6426ed0c1a
commit 4e4f71712d

View File

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