/*
* Get a talloc pool specifically for this packet.
- *
- * @todo: send an empty NAK back, saying we couldn't do
- * it.
*/
ctx = talloc_pool(worker, worker->talloc_pool_size);
if (!ctx) {
rad_assert(worker->transports[cd->transport] != NULL);
request = worker->transports[cd->transport]->recv_request(worker->transports[cd->transport], cd->ctx, ctx, cd->m.data, cd->m.data_size);
- /*
- * @todo Send an empty NAK back, saying "we couldn't do
- * anything with this request".
- */
- if (!request) {
- return NULL;
- }
+ if (!request) return NULL;
/*
* Update the transport-specific fields.
/*
* Waiting too long, delete it.
- *
- * @todo send a NAK
*/
if (waiting > NANOSEC) {
(void) fr_heap_extract(worker->to_decode, cd);
/*
* Waiting too long, delete it.
- *
- * @todo send a NAK
*/
(void) fr_heap_extract(worker->localized, cd);
fr_message_done(&cd->m);
/*
* Waiting too long, delete it.
- *
- * @todo send a NAK
*/
(void) fr_heap_extract(worker->decoded, request);
talloc_free(request);
/*
* Waiting too long, delete it.
- *
- * @todo send a NAK
*/
(void) fr_heap_extract(worker->runnable, request);
talloc_free(request);
/*
* Waiting too long, delete it.
- *
- * @todo send a NAK
*/
fr_time_tracking_resume(&request->tracking, now);
fr_time_tracking_end(&request->tracking, now, &worker->tracking);