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:43:59 +0200
commit06826423eb9989d9660d6f14421300ff3aaa5940 (patch)
treed1c96bc18fbc968bd3d8cefbe8ccce2e31a53f7d /src/util
parentbb961ec454584a6fc34cc319cedef69862791a69 (diff)
downloadsssd-06826423eb9989d9660d6f14421300ff3aaa5940.tar.gz
sssd-06826423eb9989d9660d6f14421300ff3aaa5940.tar.bz2
sssd-06826423eb9989d9660d6f14421300ff3aaa5940.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) {