summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-br
blob: 15e8dd37f67562a95caf49635b1b092d8dab0c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-br,v 1.1.1.1 2004/02/29 17:45:02 xtraeme Exp $

--- nsprpub/pr/src/misc/prnetdb.c.orig	2003-10-31 14:09:29.000000000 +0900
+++ nsprpub/pr/src/misc/prnetdb.c	2004-02-27 15:09:13.000000000 +0900
@@ -2094,7 +2094,12 @@
          */
         hints.ai_socktype = SOCK_STREAM;
 
+        LOCK_DNS();
+
         rv = GETADDRINFO(hostname, NULL, &hints, &res);
+
+        UNLOCK_DNS();
+
         if (rv == 0)
             return (PRAddrInfo *) res;