diff options
author | 2000-09-24 14:35:10 +0000 | |
---|---|---|
committer | 2000-09-24 14:35:10 +0000 | |
commit | 977bfcd90182eb48609ff133a6170868f9e02743 (patch) | |
tree | 07f36e1b725594d7740fea727d47d8a5152ec5c8 /lib | |
parent | re-apply this fix for big endian systems, this was lost in rev 1.12 (diff) | |
download | wireguard-openbsd-977bfcd90182eb48609ff133a6170868f9e02743.tar.xz wireguard-openbsd-977bfcd90182eb48609ff133a6170868f9e02743.zip |
unlock, instead of re-lock. fixes PR#1408
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 609e7fe7d08..e7af7ebfe78 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getgrent.c,v 1.12 2000/01/08 08:07:24 d Exp $"; +static char rcsid[] = "$OpenBSD: getgrent.c,v 1.13 2000/09/24 14:35:10 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -184,7 +184,7 @@ setgroupent(stayopen) _gr_stayopen = stayopen; retval = 1; } - _THREAD_PRIVATE_MUTEX_LOCK(gr); + _THREAD_PRIVATE_MUTEX_UNLOCK(gr); return (retval); } |