diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-15 12:49:27 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-17 13:43:59 +0200 |
commit | 06826423eb9989d9660d6f14421300ff3aaa5940 (patch) | |
tree | d1c96bc18fbc968bd3d8cefbe8ccce2e31a53f7d /src/util | |
parent | bb961ec454584a6fc34cc319cedef69862791a69 (diff) | |
download | sssd-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.c | 4 |
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) { |