$OpenBSD: patch-mozilla_nsprpub_pr_src_misc_prnetdb_c,v 1.5 2008/07/25 00:42:34 martynas Exp $ --- mozilla/nsprpub/pr/src/misc/prnetdb.c.orig Sun Jan 13 03:27:15 2008 +++ mozilla/nsprpub/pr/src/misc/prnetdb.c Sat Apr 5 22:24:48 2008 @@ -2039,7 +2039,12 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInfoByName(const */ hints.ai_socktype = SOCK_STREAM; + LOCK_DNS(); + rv = GETADDRINFO(hostname, NULL, &hints, &res); + + UNLOCK_DNS(); + if (rv == 0) return (PRAddrInfo *) res;