--- ./ssl/t1_lib.c Wed Feb 17 20:02:56 2010 +++ ./ssl/t1_lib.c Sun Apr 25 06:31:36 2010 @@ -1437,23 +1437,25 @@ int found_uncompressed = 0; if ((s->session->tlsext_ecpointformatlist == NULL) || (s->session->tlsext_ecpointformatlist_length == 0)) { - SSLerr(SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT,SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); - return -1; + found_uncompressed = 1; } - list = s->session->tlsext_ecpointformatlist; - for (i = 0; i < s->session->tlsext_ecpointformatlist_length; i++) + else { - if (*(list++) == TLSEXT_ECPOINTFORMAT_uncompressed) + list = s->session->tlsext_ecpointformatlist; + for (i = 0; i < s->session->tlsext_ecpointformatlist_length; i++) { - found_uncompressed = 1; - break; + if (*(list++) == TLSEXT_ECPOINTFORMAT_uncompressed) + { + found_uncompressed = 1; + break; + } } + if (!found_uncompressed) + { + SSLerr(SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT,SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); + return -1; + } } - if (!found_uncompressed) - { - SSLerr(SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT,SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); - return -1; - } } ret = SSL_TLSEXT_ERR_OK; #endif /* OPENSSL_NO_EC */