Set num_validated_users to zero if Realloc fails.
authorSamba Release Account <samba-bugs@samba.org>
Sat, 9 Nov 1996 01:56:20 +0000 (01:56 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Sat, 9 Nov 1996 01:56:20 +0000 (01:56 +0000)
(This used to be commit 57121e609e927d16389793c7969f5fb944c7669d)

source3/smbd/password.c

index 4f9f91d76d06a4a4c15c123df1dfb38b5095cc2b..9b06e0dcb52a10e6b609a399bdc31dd9e23757ac 100644 (file)
@@ -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;
     }