diff --git a/Library/Formula/gloox.rb b/Library/Formula/gloox.rb index ebcab075e7..56c9570e8c 100644 --- a/Library/Formula/gloox.rb +++ b/Library/Formula/gloox.rb @@ -5,6 +5,15 @@ 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;