Skip to content

[v9_18] When using +qr in dig print the data of the current query

Arаm Sаrgsyаn requested to merge 3244-dig-use-after-free-v9_18 into v9_18

In send_udp() and launch_next_query() functions, when calling dighost_printmessage() to print detailed information about the sent query, dig always prints the data of the first query in the lookup's queries list.

The first query in the list can be already finished, having its handles freed, and accessing this information results in assertion failure.

Print the current query's information instead.

Closes #3244 (closed)

Merge request reports