Skip to content
Snippets Groups Projects
Commit c82a211b authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

f_getpwent() now unlocks its mutexes properly.

Rev: src/modules/system/passwords.c:1.12
parent c679472b
Branches
Tags
No related merge requests found
/* /*
* $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. * Password handling for Pike.
* *
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "global.h" #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 "module_support.h"
#include "interpret.h" #include "interpret.h"
...@@ -274,6 +274,7 @@ void f_getpwent(INT32 args) ...@@ -274,6 +274,7 @@ void f_getpwent(INT32 args)
THREADS_DISALLOW_UID(); THREADS_DISALLOW_UID();
if(!foo) if(!foo)
{ {
mt_unlock(&password_protection_mutex);
push_int(0); push_int(0);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment