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
This commit is contained in:
Love Hörnquist Åstrand
2006-04-25 12:23:04 +00:00
parent 96eaf2075c
commit 2edcff9efa

View File

@@ -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);