summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-05-03 16:59:02 +0200
committerunknown <msvensson@neptunus.(none)>2006-05-03 16:59:02 +0200
commite3d7061d6605c730d00ba28998f5f577b7f3acde (patch)
tree8e1239713d369aab31d2e5fff28ffad2210037e4 /sql-common
parent184ae8820e8df8faf91740456b5ef011e3e0a88d (diff)
downloadmariadb-git-e3d7061d6605c730d00ba28998f5f577b7f3acde.tar.gz
Remove C++ comments
Formatting
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 9f445c02df9..26ebc9cc6b0 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1608,14 +1608,14 @@ static int ssl_verify_server_cert(Vio *vio, const char* server_hostname)
X509_free (server_cert);
DBUG_PRINT("info", ("hostname in cert: %s", buf));
- cp1 = strstr(buf, "/CN=");
+ cp1= strstr(buf, "/CN=");
if (cp1)
{
- cp1 += 4; // Skip the "/CN=" that we found
- // Search for next / which might be the delimiter for email
- cp2 = strchr(cp1, '/');
+ cp1+= 4; /* Skip the "/CN=" that we found */
+ /* Search for next / which might be the delimiter for email */
+ cp2= strchr(cp1, '/');
if (cp2)
- *cp2 = '\0';
+ *cp2= '\0';
DBUG_PRINT("info", ("Server hostname in cert: %s", cp1));
if (!strcmp(cp1, server_hostname))
{