causing bad writes if resolv.conf contained a sortlist directive. [RT #43459] (cherry picked from commit 55b78fff)