Do not convert ISC_R_NOSPACE to DNS_R_SERVFAIL too early

Merged Mark Andrews requested to merge 3021-dns_sdlz_putrr-does-not-auto-increase-buffer-v9_16 into v9_16

The parsing loop needs to process ISC_R_NOSPACE to properly size the buffer. If result is still ISC_R_NOSPACE at the end of the parsing loop set result to DNS_R_SERVFAIL.

(cherry picked from commit 08f1cba0)

Closes #3021 (closed)

Merge request reports