Fix dns_qp_lookup() chain inconsistency
If the iterator is adjusted in dns_qp_lookup(), it's possible for a QP chain to be left in an inconsistent state.
Closes #4717 (closed)
If the iterator is adjusted in dns_qp_lookup(), it's possible for a QP chain to be left in an inconsistent state.
Closes #4717 (closed)