From 2edcff9efa2ae9c6f927ef8a83b82991da9ac507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 25 Apr 2006 12:23:04 +0000 Subject: [PATCH] Catch the case where the client sends no encryption types or no pa-types. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17232 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/kerberos5.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kdc/kerberos5.c b/kdc/kerberos5.c index 9ca03650f..13b54bbfe 100644 --- a/kdc/kerberos5.c +++ b/kdc/kerberos5.c @@ -243,6 +243,9 @@ log_patypes(krb5_context context, return; } } + if (p == NULL) + p = rk_strpoolprintf(p, "none"); + str = rk_strpoolcollect(p); kdc_log(context, config, 0, "Client sent patypes: %s", str); free(str); @@ -1213,6 +1216,9 @@ _kdc_as_rep(krb5_context context, goto out; } } + if (p == NULL) + p = rk_strpoolprintf(p, "no encryption types"); + str = rk_strpoolcollect(p); kdc_log(context, config, 0, "Client supported enctypes: %s", str); free(str);