diff options
author | Stefan Fritsch <sf@apache.org> | 2011-06-13 16:02:18 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-06-13 16:02:18 +0000 |
commit | fba947527f8d3810bea19ebeda8276e93f623559 (patch) | |
tree | 38e6856aff2425e75337124fcb5e34f54d454b77 /modules/experimental | |
parent | 04d48349bbbbeb10e523058d855e9cb8607a9a34 (diff) | |
download | httpd-fba947527f8d3810bea19ebeda8276e93f623559.tar.gz |
Introduce new function ap_get_conn_socket() to access the socket of
a connection
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135153 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/experimental')
-rw-r--r-- | modules/experimental/mod_noloris.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/experimental/mod_noloris.c b/modules/experimental/mod_noloris.c index f2abeef32b..cfc217e1ea 100644 --- a/modules/experimental/mod_noloris.c +++ b/modules/experimental/mod_noloris.c @@ -68,7 +68,7 @@ static int noloris_conn(conn_rec *conn) shm_rec = apr_shm_baseaddr_get(shm); while (shm_rec[0] != '\0') { if (!strcmp(shm_rec, conn->remote_ip)) { - apr_socket_t *csd = ap_get_core_module_config(conn->conn_config); + apr_socket_t *csd = ap_get_conn_socket(conn); ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, conn, "Dropping connection from banned IP %s", conn->remote_ip); |