Skip to content

Commit 88fb1a1

Browse files
committed
C++: Correct the doc.
1 parent d793377 commit 88fb1a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ...
22

3-
int cert = SSL_get_peer_certificate(ssl); // BAD (SSL_get_verify_result is never called)
3+
X509 *cert = SSL_get_peer_certificate(ssl); // BAD (SSL_get_verify_result is never called)
44

55
// ...

cpp/ql/src/Security/CWE/CWE-295/SSLResultNotCheckedGood.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ...
22

3-
int cert = SSL_get_peer_certificate(ssl); // GOOD
3+
X509 *cert = SSL_get_peer_certificate(ssl); // GOOD
44
if (cert)
55
{
66
result = SSL_get_verify_result(ssl);

0 commit comments

Comments
 (0)