From da611fafdf0f408ff0d20bf0e5138ebfa1722527 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 Nov 2008 11:31:05 -0800 Subject: [PATCH] Fix error in commit for bugfix "Fix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request." Jeremy. (cherry picked from commit e4b4e9cafbb7dcda761b396a71be9ba4965956bc) --- source/nsswitch/wins.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/nsswitch/wins.c b/source/nsswitch/wins.c index ade1faf8ff8..8a5393a4d68 100644 --- a/source/nsswitch/wins.c +++ b/source/nsswitch/wins.c @@ -435,10 +435,6 @@ _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he, { NSS_STATUS nss_status; -#if HAVE_PTHREAD - pthread_mutex_lock(&wins_nss_mutex); -#endif - if(af!=AF_INET) { *h_errnop = NO_DATA; nss_status = NSS_STATUS_UNAVAIL; @@ -446,9 +442,6 @@ _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he, nss_status = _nss_wins_gethostbyname_r( name, he, buffer, buflen, h_errnop); } -#if HAVE_PTHREAD - pthread_mutex_unlock(&wins_nss_mutex); -#endif return nss_status; } #endif -- 2.11.4.GIT