summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-11-09 01:56:20 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-11-09 01:56:20 +0000
commit7da995a1dd352712f1b5d8ad2545408281265b0f (patch)
tree9cd6c68a18ef51a567fcd73602a7f9038bea54b7 /source3
parent724a529a20e410cc5db289062fb7d732011c8894 (diff)
downloadsamba-7da995a1dd352712f1b5d8ad2545408281265b0f.tar.gz
samba-7da995a1dd352712f1b5d8ad2545408281265b0f.tar.bz2
samba-7da995a1dd352712f1b5d8ad2545408281265b0f.zip
Set num_validated_users to zero if Realloc fails.
(This used to be commit 57121e609e927d16389793c7969f5fb944c7669d)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 4f9f91d76d..9b06e0dcb5 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -152,6 +152,7 @@ uint16 register_vuid(int uid,int gid, char *name,BOOL guest)
if (!validated_users)
{
DEBUG(0,("Failed to realloc users struct!\n"));
+ num_validated_users = 0;
return UID_FIELD_INVALID;
}