adding additional comments to last patch, b=223145

This commit is contained in:
darin%meer.net 2003-11-03 09:10:57 +00:00
Родитель bb123973dd
Коммит 2e48347cf6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -368,6 +368,9 @@ nsHostResolver::ResolveHost(const char *host,
rv = NS_ERROR_NOT_INITIALIZED; rv = NS_ERROR_NOT_INITIALIZED;
else { else {
PRNetAddr tempAddr; PRNetAddr tempAddr;
// unfortunately, PR_StringToNetAddr does not properly initialize
// the output buffer in the case of IPv6 input. see bug 223145.
memset(&tempAddr, 0, sizeof(PRNetAddr)); memset(&tempAddr, 0, sizeof(PRNetAddr));
// check to see if there is already an entry for this |host| // check to see if there is already an entry for this |host|