Show
Ignore:
Timestamp:
03/03/10 15:53:06 (2 years ago)
Author:
gbastien
Message:

Committed patch for #501 by Benoît Grégoire and Mac Jones

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/auth.c

    r1373 r1454  
    107107 
    108108        if (client == NULL) { 
    109                 debug(LOG_ERR, "Could not find client for %s", r->clientAddr); 
     109                debug(LOG_ERR, "authenticate_client(): Could not find client for %s", r->clientAddr); 
    110110                UNLOCK_CLIENT_LIST(); 
    111111                return; 
     
    130130         
    131131        if (client == NULL) { 
    132                 debug(LOG_ERR, "Could not find client node for %s (%s)", r->clientAddr, mac); 
     132                debug(LOG_ERR, "authenticate_client(): Could not find client node for %s (%s)", r->clientAddr, mac); 
    133133                UNLOCK_CLIENT_LIST(); 
    134134                free(token); 
     
    154154        case AUTH_DENIED: 
    155155                /* Central server said invalid token */ 
    156                 debug(LOG_INFO, "Got DENIED from central server authenticating token %s from %s at %s - redirecting them to denied message", client->token, client->ip, client->mac); 
     156                debug(LOG_INFO, "Got DENIED from central server authenticating token %s from %s at %s - deleting from firewall and redirecting them to denied message", client->token, client->ip, client->mac); 
     157                fw_deny(client->ip, client->mac, FW_MARK_KNOWN); 
    157158                safe_asprintf(&urlFragment, "%smessage=%s", 
    158159                        auth_server->authserv_msg_script_path_fragment,