diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 88f060666a4..201a1a3cac8 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -106,6 +106,13 @@ krb5_error_code krb5_auth_con_setuseruserkey(krb5_context context, } #endif +#if !defined(HAVE_KRB5_FREE_UNPARSED_NAME) +void krb5_free_unparsed_name(krb5_context context, char *val) +{ + SAFE_FREE(val); +} +#endif + /********************************************************** * WRAPPING FUNCTIONS @@ -435,13 +442,6 @@ krb5_error_code smb_krb5_parse_name(krb5_context context, return ret; } -#if !defined(HAVE_KRB5_FREE_UNPARSED_NAME) -void krb5_free_unparsed_name(krb5_context context, char *val) -{ - SAFE_FREE(val); -} -#endif - /************************************************************** krb5_parse_name that returns a UNIX charset name. Must be freed with talloc_free() call.