treat ISC_R_INVALIDPROTO as a networking error when it occurs. (cherry picked from commit 2269a3e6fb)
2269a3e6fb