Skip to content
Snippets Groups Projects
Commit a6a1d412 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed a few bugs that were left.

Rev: src/modules/system/passwords.c:1.18
parent ab79025d
No related branches found
No related tags found
No related merge requests found
/*
* $Id: passwords.c,v 1.17 1998/07/10 15:52:10 grubba Exp $
* $Id: passwords.c,v 1.18 1998/07/13 22:13:20 grubba Exp $
*
* Password handling for Pike.
*
......@@ -22,7 +22,7 @@
#include "system_machine.h"
#include "system.h"
RCSID("$Id: passwords.c,v 1.17 1998/07/10 15:52:10 grubba Exp $");
RCSID("$Id: passwords.c,v 1.18 1998/07/13 22:13:20 grubba Exp $");
#include "module_support.h"
#include "interpret.h"
......@@ -294,7 +294,8 @@ void f_getpwent(INT32 args)
THREADS_DISALLOW_UID();
if(!foo)
{
mt_unlock(&password_protection_mutex);
UNLOCK_IMUTEX(&password_protection_mutex);
push_int(0);
return;
}
......@@ -465,7 +466,8 @@ void f_get_groups_for_user(INT32 arg)
if(!pw)
{
mt_unlock(&password_protection_mutex);
UNLOCK_IMUTEX(&password_protection_mutex);
pop_stack();
push_int(0);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment