summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-05-03 16:59:02 +0200
committermsvensson@neptunus.(none) <>2006-05-03 16:59:02 +0200
commit896704c648fc8a2e59b4f5b87a4d4a9851b427c0 (patch)
tree8e1239713d369aab31d2e5fff28ffad2210037e4
parent7c8c14c4358476df753d101de2d1e72754dbac6f (diff)
downloadmariadb-git-896704c648fc8a2e59b4f5b87a4d4a9851b427c0.tar.gz
Remove C++ comments
Formatting
-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))
{