summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-26 16:54:12 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-08-31 20:59:14 +0200
commitbe21e7f2038320a8a13b69e07af98eba112648d4 (patch)
treece2acce5348dcc0cf4bfed38edb00f8127448a7a
parent7fe150cbb2e914bb0a9f6fc99ea6fb90195ed01f (diff)
downloadsamba-be21e7f2038320a8a13b69e07af98eba112648d4.tar.gz
krb5_wrap: Move krb5_free_unparsed_name() to the top
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--lib/krb5_wrap/krb5_samba.c14
1 files changed, 7 insertions, 7 deletions
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.