Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: liudengfeng <liudengfeng@kunteng.org>
  • Loading branch information
liudengfeng committed Nov 19, 2018
1 parent 6d3fc29 commit a2a7197
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,19 @@ fw_client_process_from_authserver_response(t_authresponse *authresponse, t_clien
return; /* Next client please */
}

fw_client_operation(authresponse->authcode, p1);

if (config->auth_servers && tmp_c->is_online) {

if (config->auth_servers) {
switch (authresponse->authcode) {
case AUTH_DENIED:
debug(LOG_NOTICE, "%s - Denied. Removing client and firewall rules", tmp_c->ip);
fw_client_operation(authresponse->authcode, tmp_c);
client_list_delete(tmp_c);
break;

case AUTH_VALIDATION_FAILED:
debug(LOG_NOTICE, "%s - Validation timeout, now denied. Removing client and firewall rules",
tmp_c->ip);
fw_client_operation(authresponse->authcode, tmp_c);
client_list_delete(tmp_c);
break;

Expand Down

0 comments on commit a2a7197

Please sign in to comment.