Skip to content

Commit 8f270b6

Browse files
committed
C++: Fix test comments.
1 parent 88fb1a1 commit 8f270b6

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-295

1 file changed

+3
-3
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-295/test2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bool test2_8(SSL *ssl)
9797
{
9898
int cert;
9999

100-
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
100+
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
101101
if (!cert) return false;
102102
if (!SSL_get_verify_result(ssl)) return false;
103103

@@ -108,7 +108,7 @@ bool test2_9(SSL *ssl)
108108
{
109109
int cert;
110110

111-
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
111+
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
112112
if ((!cert) || (SSL_get_verify_result(ssl) != 0)) {
113113
return false;
114114
}
@@ -137,7 +137,7 @@ bool test2_11(SSL *ssl)
137137
{
138138
int cert;
139139

140-
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
140+
cert = SSL_get_peer_certificate(ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
141141

142142
if ((cert) && (SSL_get_verify_result(ssl) == 0)) {
143143
return true;

0 commit comments

Comments
 (0)