svn rev #23495: branches/anonymous/src/plugins/preauth/pkinit/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 23 16:10:00 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23495
Commit By: hartmans
Log Message:
Only check for anonymous if pkinit_identity is given a principal; the KDC does not pass in a principal
Changed Files:
U branches/anonymous/src/plugins/preauth/pkinit/pkinit_identity.c
Modified: branches/anonymous/src/plugins/preauth/pkinit/pkinit_identity.c
===================================================================
--- branches/anonymous/src/plugins/preauth/pkinit/pkinit_identity.c 2009-12-23 21:09:56 UTC (rev 23494)
+++ branches/anonymous/src/plugins/preauth/pkinit/pkinit_identity.c 2009-12-23 21:10:00 UTC (rev 23495)
@@ -505,7 +505,7 @@
int i;
pkiDebug("%s: %p %p %p\n", __FUNCTION__, context, idopts, id_cryptoctx);
- if (!krb5_principal_compare_any_realm (context, princ, krb5_anonymous_principal())) {
+ if (princ && !krb5_principal_compare_any_realm (context, princ, krb5_anonymous_principal())) {
if (idopts == NULL || id_cryptoctx == NULL)
goto errout;
More information about the cvs-krb5
mailing list