Fix segfaults related to copying DH parameters.
[trust_router.git] / tid / tidc.c
index fcc78c9..de3295b 100644 (file)
@@ -119,7 +119,7 @@ int tidc_send_request (TIDC_INSTANCE *tidc,
     goto error;
   }
 
-  tid_req->tidc_dh = tidc->client_dh;
+  tid_req->tidc_dh = tr_dh_dup(tidc->client_dh);
 
   rc = tidc_fwd_request(tidc, tid_req, resp_handler, cookie);
   goto cleanup;