This commit is contained in:
Bodo Möller 1999-05-15 12:22:46 +00:00
parent 79479f0240
commit 64a3b11be6

View File

@ -363,7 +363,7 @@ struct hostent *BIO_gethostbyname(const char *name)
/* else add to cache */
if (ghbn_cache[lowi].ent != NULL)
ghbn_free(ghbn_cache[lowi].ent);
ghbn_free(ghbn_cache[lowi].ent); /* XXX not thread-safe */
ghbn_cache[lowi].name[0] = '\0';
if((ret=ghbn_cache[lowi].ent=ghbn_dup(ret)) == NULL)