From: Nikos Mavrogiannopoulos Date: Fri, 29 Mar 2002 18:41:19 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_4_0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf07d970ff9cf216e25fcc3089971c49b091230;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/lib/auth_cert.c b/lib/auth_cert.c index a6933dd08b..2b95903257 100644 --- a/lib/auth_cert.c +++ b/lib/auth_cert.c @@ -158,7 +158,7 @@ inline } /* Locates the most appropriate x509 certificate using the - * given DN + * given DN. If indx == -1 then no certificate was found. */ static int _find_x509_cert(const GNUTLS_CERTIFICATE_CREDENTIALS cred, opaque * _data, int _data_size, @@ -236,6 +236,8 @@ static int _find_openpgp_cert(const GNUTLS_CERTIFICATE_CREDENTIALS cred, { int i, j; + *indx = -1; + for (i = 0; i < cred->ncerts; i++) { for (j = 0; j < cred->cert_list_length[i]; j++) {