use the address of context instead of context itself
authorMarcel Poul <marcel.poul@cern.ch>
Tue, 12 Jun 2012 14:53:05 +0000 (14:53 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Tue, 12 Jun 2012 14:53:05 +0000 (14:53 +0000)
emi.canl.canl-c/src/canl_ssl.c

index 4869886..2143338 100644 (file)
@@ -249,7 +249,7 @@ set_ocsp_store(canl_x509store_t *store)
     static canl_err_code
 ssl_initialize(glb_ctx *cc)
 {
-    mech_glb_ctx **m_glb_ctx = (mech_glb_ctx **)cc->mech_ctx;
+    mech_glb_ctx **m_glb_ctx = (mech_glb_ctx **) &cc->mech_ctx;
     int err = 0;
     char *ca_cert_fn, *user_cert_fn, *user_key_fn, *user_proxy_fn;
     char *ca_cert_dirn = NULL;