Fix typo in Jeremy's thread-safe winbind patch:
authorjmcd <jmcd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 3 Oct 2007 20:56:29 +0000 (20:56 +0000)
committerjmcd <jmcd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Wed, 3 Oct 2007 20:56:29 +0000 (20:56 +0000)
lock->unlock (would have tried to lock a mutex
at the end of a function).  Cut-n-paste error.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25493 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/winbind_nss_linux.c

index 6de419d..7322da0 100644 (file)
@@ -1347,7 +1347,7 @@ _nss_winbind_sidtogid(const char *sid, gid_t *gid, int *errnop)
 failed:
 
 #if HAVE_PTHREAD
-       pthread_mutex_lock(&winbind_nss_mutex);
+       pthread_mutex_unlock(&winbind_nss_mutex);
 #endif
 
        return ret;