417 // ensure that we are working with a valid hostname before proceeding. see
418 // bug 304904 for details.
419 if (!net_IsValidHostName(nsDependentCString(host)))
420 return NS_ERROR_UNKNOWN_HOST;
Should we have a different error conditions for illegal/invalid hostnames?
My code-reading skills are modest, so I'll ask rather than risk an invalid bug.
I was playing with some ad hoc testing of this function and I found that something like: www.host\.com fails with "hostname not found" error page.
I *think* it's because this function is used like this:
http:// mxr.mozilla. org/seamonkey/ source/ netwerk/ dns/src/ nsHostResolver. cpp
417 // ensure that we are working with a valid hostname before proceeding. see stName( nsDependentCStr ing(host) )) UNKNOWN_ HOST;
418 // bug 304904 for details.
419 if (!net_IsValidHo
420 return NS_ERROR_
Should we have a different error conditions for illegal/invalid hostnames?