diff --git a/src/tpm.c b/src/tpm.c index 94329b2..b92ba16 100644 --- a/src/tpm.c +++ b/src/tpm.c @@ -1024,7 +1024,7 @@ static void veh_handle_recv(tolling_t* tolling, TPM_t* tpm_rx, void* security_so tr->choice.data.choice.tcp.choice.connCloseReq.id = id; buf[0] = 4; - enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, sreq, buf+1, buf_len-1); + enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1); it2s_tender_queue_send(tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, id, "TR.data.tcp.connClose"); free(tlsc); @@ -1257,7 +1257,7 @@ void tolling_tlsc_mgmt(tolling_t* tolling, it2s_tender_epv_t* epv, it2s_tender_q tr->choice.data.choice.tcp.choice.connCloseReq.id = id; buf[0] = 4; - enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, sreq, buf+1, buf_len-1); + enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1); it2s_tender_queue_send(tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, id, "TR.data.tcp.connClose"); free(tlsc);