Drop unused variables
authorMarcel Poul <marcel.poul@cern.ch>
Wed, 10 Oct 2012 09:47:00 +0000 (09:47 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Wed, 10 Oct 2012 09:47:00 +0000 (09:47 +0000)
emi.canl.canl-c/src/proxy/sslutils.c

index 5270c01..9a75f92 100644 (file)
@@ -1820,8 +1820,7 @@ proxy_verify_callback(
     int                                 i;
     int                                 ret;
     time_t                              goodtill;
-    char *                              ca_policy_file_path = NULL;
-    char *                              cert_dir            = NULL;
+    char *                              cert_dir = NULL;
     EVP_PKEY *key = NULL;
     int       objset = 0;
     canl_ocsprequest_t *ocsp_data = NULL;
@@ -2154,12 +2153,6 @@ proxy_verify_callback(
 
     pvd->cert_depth++;
 
-    if (ca_policy_file_path != NULL)
-    {
-        free(ca_policy_file_path);
-        ca_policy_file_path = NULL;
-    }
-
     if (!check_critical_extensions(ctx->current_cert, itsaproxy)) {
       PRXYerr(PRXYERR_F_VERIFY_CB, PRXYERR_R_UNKNOWN_CRIT_EXT);
       ctx->error = X509_V_ERR_CERT_REJECTED;
@@ -2235,11 +2228,6 @@ fail_verify:
     if (objset)
       X509_OBJECT_free_contents(&obj);
 
-    if (ca_policy_file_path != NULL)
-    {
-        free(ca_policy_file_path);
-    }
-
     return(0);
 }