Skip to content
Snippets Groups Projects
Commit 70c062e4 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

mod-dnstap: skip empty packet

parent 4cafc0ad
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,11 @@ static int log_message(int state, const knot_pkt_t *pkt, struct query_data *qdat
{
assert(pkt && qdata && ctx);
/* Skip empty packet. */
if (pkt->size == 0) {
return state;
}
struct fstrm_iothr_queue *ioq =
fstrm_iothr_get_input_queue_idx(ctx->iothread, qdata->param->thread_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment