resolve more than one host name simultaneously, needed with last patch
from netbsd
This commit is contained in:
parent
1b35da8bce
commit
e089f737db
16
www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c
Normal file
16
www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-nsprpub_pr_src_misc_prnetdb_c,v 1.3 2004/02/29 22:41:15 wilfried Exp $
|
||||
--- nsprpub/pr/src/misc/prnetdb.c.orig 2003-10-31 06:09:29.000000000 +0100
|
||||
+++ nsprpub/pr/src/misc/prnetdb.c 2004-02-22 11:19:20.000000000 +0100
|
||||
@@ -2094,7 +2094,12 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf
|
||||
*/
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
|
||||
+ LOCK_DNS();
|
||||
+
|
||||
rv = GETADDRINFO(hostname, NULL, &hints, &res);
|
||||
+
|
||||
+ UNLOCK_DNS();
|
||||
+
|
||||
if (rv == 0)
|
||||
return (PRAddrInfo *) res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user