diff --git a/src/facilities.c b/src/facilities.c index 3592b75..7173540 100644 --- a/src/facilities.c +++ b/src/facilities.c @@ -300,6 +300,8 @@ static int transport_indication(facilities_t *facilities, void* responder, void* tpr->gn->destinationAddress.buf = calloc(1, 6); tpr->gn->destinationAddress.size = 6; + tpr->id = rand() + 1; + buf[0] = 4; enc = oer_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, buf+1, buf_len-1); if (enc.encoded == -1) { @@ -308,7 +310,7 @@ static int transport_indication(facilities_t *facilities, void* responder, void* goto cleanup; } - it2s_tender_queue_send(facilities->tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, id, "TR.packet.tcp"); + it2s_tender_queue_send(facilities->tx_queue, buf, enc.encoded+1, ITSS_TRANSPORT, tpr->id, "TR.packet.tcp"); } else { if (facilities->tolling.enabled && srep->data->choice.tlsRecv.data.size) {