Changeset 232 for branches/samba-3.2.x/source/smbd/password.c
- Timestamp:
- May 27, 2009, 9:09:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/password.c
r133 r232 28 28 /* this holds info on user ids that are already validated for this VC */ 29 29 static user_struct *validated_users; 30 static int next_vuid = VUID_OFFSET;30 static uint16_t next_vuid = VUID_OFFSET; 31 31 static int num_validated_vuids; 32 32 … … 150 150 } 151 151 152 static void increment_next_vuid(uint16_t *vuid) 153 { 154 *vuid += 1; 155 156 /* Check for vuid wrap. */ 157 if (*vuid == UID_FIELD_INVALID) { 158 *vuid = VUID_OFFSET; 159 } 160 } 161 152 162 /**************************************************** 153 163 Create a new partial auth user struct. … … 178 188 while( get_valid_user_struct_internal(next_vuid, 179 189 SERVER_ALLOCATED_REQUIRED_ANY) != NULL ) { 180 next_vuid++; 181 /* Check for vuid wrap. */ 182 if (next_vuid == UID_FIELD_INVALID) { 183 next_vuid = VUID_OFFSET; 184 } 190 increment_next_vuid(&next_vuid); 185 191 } 186 192 … … 195 201 * to NTLMSSP. 196 202 */ 197 next_vuid++;203 increment_next_vuid(&next_vuid); 198 204 num_validated_vuids++; 199 205 … … 325 331 "and will be vuid %u\n", 326 332 (int)vuser->uid,vuser->user.unix_name, vuser->vuid)); 327 328 next_vuid++;329 num_validated_vuids++;330 333 331 334 if (!session_claim(vuser)) {
Note:
See TracChangeset
for help on using the changeset viewer.