summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-08-08 02:21:17 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-08-08 02:21:17 -0400
commit43bb0b4cedda5d60f9dc150c9b8331419a14d4b2 (patch)
tree737350cebc18e3e937b12cb6d8fdfbb28c4be962 /server
parent32da3192e9169118365a236ac8ccd1bf982df020 (diff)
autoconf check for krb5_free_unparsed_name
Diffstat (limited to 'server')
-rw-r--r--server/kstuff.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/kstuff.c b/server/kstuff.c
index b2cf4c5..5bd9d3b 100644
--- a/server/kstuff.c
+++ b/server/kstuff.c
@@ -413,11 +413,19 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
syslog(LOG_WARNING, "ZCheckSrvAuthentication: name mismatch: '%s' vs '%s'",
name, sender);
krb5_auth_con_free(Z_krb5_ctx, authctx);
+#ifdef HAVE_KRB5_FREE_UNPARSED_NAME
krb5_free_unparsed_name(Z_krb5_ctx, name);
+#else
+ free(name);
+#endif
free(authbuf);
return ZAUTH_FAILED;
}
+#ifdef HAVE_KRB5_FREE_UNPARSED_NAME
krb5_free_unparsed_name(Z_krb5_ctx, name);
+#else
+ free(name);
+#endif
free(authbuf);
/* HOLDING: authctx */