summaryrefslogtreecommitdiff
path: root/network/krb5/patches/2009-003-patch.txt
diff options
context:
space:
mode:
Diffstat (limited to 'network/krb5/patches/2009-003-patch.txt')
-rw-r--r--network/krb5/patches/2009-003-patch.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/network/krb5/patches/2009-003-patch.txt b/network/krb5/patches/2009-003-patch.txt
new file mode 100644
index 0000000000..0319cd1c97
--- /dev/null
+++ b/network/krb5/patches/2009-003-patch.txt
@@ -0,0 +1,27 @@
+diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c
+index 298e132..12180ff 100644
+--- a/src/kdc/do_tgs_req.c
++++ b/src/kdc/do_tgs_req.c
+@@ -1158,7 +1158,7 @@ prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ)
+ free(temp_buf);
+ if (retval) {
+ /* no match found */
+- kdc_err(kdc_context, retval, 0);
++ kdc_err(kdc_context, retval, "unable to find realm of host");
+ goto cleanup;
+ }
+ if (realms == 0) {
+diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c
+index efff818..ef3735a 100644
+--- a/src/lib/kadm5/logger.c
++++ b/src/lib/kadm5/logger.c
+@@ -188,6 +188,9 @@ klog_com_err_proc(const char *whoami, long int code, const char *format, va_list
+ char *cp;
+ char *syslogp;
+
++ if (whoami == NULL || format == NULL)
++ return;
++
+ /* Make the header */
+ snprintf(outbuf, sizeof(outbuf), "%s: ", whoami);
+ /*