Hi,
while debugging I discovered what I think is a bug in
the CIPHER list handling ssl_cipher_apply_rule().
I think it does not work for a list of size one.

OpenSSL version 1.0.1c.
ssl_ciph.c: 956
Function: ssl_cipher_apply_rule
951:        curr = head;
950:        last = tail;
......
954:   for (;;)
955:   {
956:     if ((curr == NULL) || (curr == last)) break;

The break criteria "(curr == last) is strange.
I arrive here with only ONE member in my list, so
-> head == tail  -> curr == last.
So it breaks the for loop directly and does not process the rule below.

I think the problem is specific for a list of one member.
Can someone please help to confirm if this is a bug or not?

Best regards
Peter
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to