From c93b546ebdd4693e2ce32150ca14b5a90e8b09ba Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 27 Jul 2012 14:06:06 -0400 Subject: [PATCH] remove bogus AI_NUMERICSERV Not needed, and causes a segfault on OSX when it tries to dereference the NULL servicename. (Linux handles this case better.) --- Utility/WebApp.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index 517251a7a9..69864dc6d3 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -69,7 +69,7 @@ localSocket = do go $ Prelude.head addrs where hints = defaultHints - { addrFlags = [AI_ADDRCONFIG, AI_NUMERICSERV] + { addrFlags = [AI_ADDRCONFIG] , addrSocketType = Stream } go addr = bracketOnError (open addr) close (use addr)