(pk_principal_from_X509): reverse test, makes principal in cert work

From: Mayur Patel <patelm4@rpi.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14055 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-07-19 20:45:50 +00:00
parent 172422eaa7
commit af2494e41a

View File

@@ -980,7 +980,7 @@ pk_principal_from_X509(krb5_context context,
gens = X509_get_ext_d2i(client_cert->cert, NID_subject_alt_name,
NULL, NULL);
if (gens)
if (gens == NULL)
return 1;
for (i = 0; i < sk_GENERAL_NAME_num(gens); i++) {