1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Check for krb5_xfree instead of krb5_free_unparsed_name

Use krb5_xfree if available, otherwise default to
krb5_free_unparsed_name.
This commit is contained in:
Vicențiu Ciorbaru
2020-06-15 16:01:41 +03:00
parent de20091f5c
commit 93cee30309
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ static void log_error( OM_uint32 major, OM_uint32 minor, const char *msg)
Generate default principal service name formatted as principal name "mariadb/server.fqdn@REALM"
*/
#include <krb5.h>
#ifndef HAVE_KRB5_FREE_UNPARSED_NAME
#ifdef HAVE_KRB5_XFREE
#define krb5_free_unparsed_name(a,b) krb5_xfree(b)
#endif
static char* get_default_principal_name()