From 4035b05232f097e48e2521b81c87bb1273b5ca11 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 20 Mar 2000 22:00:16 +0000 Subject: [PATCH] ITS#441: unhex escape referrals. Needs review before being applied to RE 1.2. --- libraries/libldap/request.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index bf2228a6d8..56e5f492dc 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -627,7 +627,9 @@ ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp ) p = NULL; } + ldap_pvt_hex_unescape( ref ); len = strlen( ref ); + if ( len > LDAP_LDAP_REF_STR_LEN && strncasecmp( ref, LDAP_LDAP_REF_STR, LDAP_LDAP_REF_STR_LEN ) == 0 ) { Debug( LDAP_DEBUG_TRACE, -- 2.39.5