Correctly serve certificates if CERT_ANY requested

This commit is contained in:
Martin Willi
2009-09-21 15:34:29 +02:00
parent c6a8990bc5
commit fde7f5abf8
+1 -1
View File
@@ -151,7 +151,7 @@ static bool certs_filter(id_data_t *data, certificate_t **in, certificate_t **ou
certificate_t *cert = *in;
chunk_t keyid;
if (cert->get_type(cert) != data->type)
if (data->type != CERT_ANY && data->type != cert->get_type(cert))
{
return FALSE;
}