From c82a211b0c35f9cf0f584a622ee0fbda9eb82711 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Sun, 19 Apr 1998 17:02:44 +0200
Subject: [PATCH] f_getpwent() now unlocks its mutexes properly.

Rev: src/modules/system/passwords.c:1.12
---
 src/modules/system/passwords.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/system/passwords.c b/src/modules/system/passwords.c
index a3badffd58..a0ac00e105 100644
--- a/src/modules/system/passwords.c
+++ b/src/modules/system/passwords.c
@@ -1,5 +1,5 @@
 /*
- * $Id: passwords.c,v 1.11 1998/04/16 22:56:52 grubba Exp $
+ * $Id: passwords.c,v 1.12 1998/04/19 15:02:44 marcus Exp $
  *
  * Password handling for Pike.
  *
@@ -22,7 +22,7 @@
 
 #include "global.h"
 
-RCSID("$Id: passwords.c,v 1.11 1998/04/16 22:56:52 grubba Exp $");
+RCSID("$Id: passwords.c,v 1.12 1998/04/19 15:02:44 marcus Exp $");
 
 #include "module_support.h"
 #include "interpret.h"
@@ -274,6 +274,7 @@ void f_getpwent(INT32 args)
   THREADS_DISALLOW_UID();
   if(!foo)
   {
+    mt_unlock(&password_protection_mutex);
     push_int(0);
     return;
   }
-- 
GitLab