From 569ebfaea43475fef73512b11f0f976f8909d238 Mon Sep 17 00:00:00 2001 From: olavmrk Date: Wed, 8 May 2013 12:24:26 +0000 Subject: Compatibility helpers for Apache 2.4. Thansk to Thijs Kinkhorst for identifying the changes that were necessary! git-svn-id: https://modmellon.googlecode.com/svn/trunk@208 a716ebb1-153a-0410-b759-cfb97c6a1b53 --- auth_mellon_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auth_mellon_handler.c') diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c index a24f59b..996daea 100644 --- a/auth_mellon_handler.c +++ b/auth_mellon_handler.c @@ -1283,11 +1283,11 @@ static int am_validate_subject(request_rec *r, LassoSaml2Assertion *assertion, } if (scd->Address && CFG_VALUE(cfg, subject_confirmation_data_address_check)) { - if (strcasecmp(scd->Address, r->connection->remote_ip)) { + if (strcasecmp(scd->Address, am_compat_request_ip(r))) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "Wrong Address in SubjectConfirmationData." "Current address is \"%s\", but should have been \"%s\".", - r->connection->remote_ip, scd->Address); + am_compat_request_ip(r), scd->Address); return HTTP_BAD_REQUEST; } } -- cgit