$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;
 
