summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-15 12:49:27 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-17 13:17:26 +0200
commit1effcf610000b0f34dfb849ef80fc522d4394c7d (patch)
tree9e25a440278652868c58fc74b9ab5685074d1788 /src/util
parent4a25e68cd863318f18b2ca78cf6efa7a1921d33a (diff)
downloadsssd-1effcf610000b0f34dfb849ef80fc522d4394c7d.tar.gz
sssd-1effcf610000b0f34dfb849ef80fc522d4394c7d.tar.bz2
sssd-1effcf610000b0f34dfb849ef80fc522d4394c7d.zip
heimdal: Add krb5_xfree to krb5_free_unparsed_name wrapper
krb5_free_unparsed_name is deprecated in heimdal. Also use the wrapper in places where it is not yet used.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_krb5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 6382c1aa..5f3177a9 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -535,7 +535,9 @@ void KRB5_CALLCONV sss_krb5_get_init_creds_opt_free (krb5_context context,
void KRB5_CALLCONV sss_krb5_free_unparsed_name(krb5_context context, char *name)
{
-#ifdef HAVE_KRB5_FREE_UNPARSED_NAME
+#ifdef HAVE_KRB5_XFREE
+ krb5_xfree(name);
+#elif HAVE_KRB5_FREE_UNPARSED_NAME
krb5_free_unparsed_name(context, name);
#else
if (name != NULL) {