aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_config_ldap.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-11 23:12:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-11 23:12:16 +0000
commit10f7ba8c8bbfe12a1cd59f593721a1b5506e306f (patch)
treefc6a18053a7211da14e3bb5ec0a4da89ac224805 /res/res_config_ldap.c
parent17f828c3690564cae0d25827dde3f4b54247d916 (diff)
Use the correct function for free'ing objects, and maybe we won't crash.
(closes issue #12163) Reported by: gservat Patches: 20080411__bug12163.diff.txt uploaded by Corydon76 (license 14) Tested by: gservat git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114085 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_ldap.c')
-rw-r--r--res/res_config_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c
index 3344b3deb..a88e480a4 100644
--- a/res/res_config_ldap.c
+++ b/res/res_config_ldap.c
@@ -326,7 +326,7 @@ static struct ast_variable *realtime_ldap_entry_to_var(struct ldap_table_config
}
v++;
}
- ber_bvecfree(values);
+ ldap_value_free_len(values);
}
ldap_attribute_name = ldap_next_attribute(ldapConn, ldap_entry, ber);
}
@@ -492,7 +492,7 @@ static struct ast_variable **realtime_ldap_result_to_vars(struct ldap_table_conf
}
v++;
} /*!< while(*v) */
- ber_bvecfree(values);
+ ldap_value_free_len(values);
}/*!< if (values) */
ldap_attribute_name = ldap_next_attribute(ldapConn, ldap_entry, ber);
} /*!< while (ldap_attribute_name) */