From 7da995a1dd352712f1b5d8ad2545408281265b0f Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Sat, 9 Nov 1996 01:56:20 +0000 Subject: [PATCH] Set num_validated_users to zero if Realloc fails. (This used to be commit 57121e609e927d16389793c7969f5fb944c7669d) --- source3/smbd/password.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 4f9f91d76d0..9b06e0dcb52 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; } -- 2.25.1