mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-12 07:47:02 +08:00
When sending BAN IP messages to main receive a reply on whether further actions should continue
That allows to BAN a user even during an open connection.
This commit is contained in:
@@ -140,7 +140,7 @@ int post_kkdcp_handler(worker_st *ws, unsigned http_ver)
|
||||
return -1;
|
||||
}
|
||||
|
||||
ws->ban_points += KKDCP_POINTS;
|
||||
ws_add_score_to_ip(ws, KKDCP_POINTS, 0);
|
||||
oclog(ws, LOG_HTTP_DEBUG, "HTTP processing kkdcp framed request: %u bytes", (unsigned)req->body_length);
|
||||
|
||||
ret = der_decode((uint8_t*)req->body, req->body_length, buf, &length, realm, sizeof(realm), &e);
|
||||
|
||||
Reference in New Issue
Block a user