require 'formula' class Gloox 0 ) && certListSize > 0 ) certListSize--; @@ -189,7 +193,7 @@ namespace gloox if( !gnutls_x509_crt_check_hostname( cert[0], m_server.c_str() ) ) m_certInfo.status |= CertWrongPeer; - for( unsigned int i = 0; i < certListSize; ++i ) + for( unsigned int i = 0; i < certListSizeFull; ++i ) gnutls_x509_crt_deinit( cert[i] ); delete[] cert;