From f06f2a6aeccf4b51fae5fcf4197f3263a0e2c1f2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 10 Nov 2004 09:56:55 +0000 Subject: [PATCH] fix ITS#3350 (rewrite/remap will be replaced by the rwm overlay) --- servers/slapd/back-ldap/back-ldap.h | 2 -- servers/slapd/back-ldap/init.c | 2 +- servers/slapd/back-meta/init.c | 9 +++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-ldap/back-ldap.h b/servers/slapd/back-ldap/back-ldap.h index 00fe4da228..4622443be7 100644 --- a/servers/slapd/back-ldap/back-ldap.h +++ b/servers/slapd/back-ldap/back-ldap.h @@ -205,8 +205,6 @@ ldap_back_map_attrs( char ***mapped_attrs ); -extern void mapping_free ( void *mapping ); - extern int ldap_back_map_config( struct ldapmap *oc_map, struct ldapmap *at_map, diff --git a/servers/slapd/back-ldap/init.c b/servers/slapd/back-ldap/init.c index ead3372629..8062a63730 100644 --- a/servers/slapd/back-ldap/init.c +++ b/servers/slapd/back-ldap/init.c @@ -216,7 +216,7 @@ ldap_back_conn_free( ch_free( lc ); } -void +static void mapping_free( void *v_mapping ) { struct ldapmapping *mapping = v_mapping; diff --git a/servers/slapd/back-meta/init.c b/servers/slapd/back-meta/init.c index 23e12fe289..8830e17639 100644 --- a/servers/slapd/back-meta/init.c +++ b/servers/slapd/back-meta/init.c @@ -145,6 +145,15 @@ conn_free( free( lc ); } +static void +mapping_free( void *v_mapping ) +{ + struct ldapmapping *mapping = v_mapping; + ch_free( mapping->src.bv_val ); + ch_free( mapping->dst.bv_val ); + ch_free( mapping ); +} + static void target_free( struct metatarget *lt -- 2.39.5