]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1646: Memory corruption when using client-side SSL certificates
authorhno <>
Mon, 3 Jul 2006 01:52:49 +0000 (01:52 +0000)
committerhno <>
Mon, 3 Jul 2006 01:52:49 +0000 (01:52 +0000)
also fixed logging.

src/ssl_support.cc

index 8fc4305b5c4d621666e82d1ebf18c1c2e59c8e24..82b8ac5353f5de59b1fc06cd13bfb171c4bd5972 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ssl_support.cc,v 1.33 2005/08/25 19:30:01 wessels Exp $
+ * $Id: ssl_support.cc,v 1.34 2006/07/02 19:52:49 hno Exp $
  *
  * AUTHOR: Benno Rice
  * DEBUG: section 83    SSL accelerator support
@@ -955,8 +955,6 @@ sslGetUserAttribute(SSL * ssl, const char *attribute_name)
 
     X509_free(cert);
 
-    CRYPTO_free(name);
-
     return ret;
 }
 
@@ -981,15 +979,13 @@ sslGetCAAttribute(SSL * ssl, const char *attribute_name)
 
     X509_free(cert);
 
-    CRYPTO_free(name);
-
     return ret;
 }
 
 const char *
 sslGetUserEmail(SSL * ssl)
 {
-    return sslGetUserAttribute(ssl, "Email");
+    return sslGetUserAttribute(ssl, "emailAddress");
 }
 
 const char *