Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/smbd/password.c

    r133 r232  
    2828/* this holds info on user ids that are already validated for this VC */
    2929static user_struct *validated_users;
    30 static int next_vuid = VUID_OFFSET;
     30static uint16_t next_vuid = VUID_OFFSET;
    3131static int num_validated_vuids;
    3232
     
    150150}
    151151
     152static 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
    152162/****************************************************
    153163 Create a new partial auth user struct.
     
    178188        while( get_valid_user_struct_internal(next_vuid,
    179189                        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);
    185191        }
    186192
     
    195201         * to NTLMSSP.
    196202         */
    197         next_vuid++;
     203        increment_next_vuid(&next_vuid);
    198204        num_validated_vuids++;
    199205
     
    325331                "and will be vuid %u\n",
    326332                (int)vuser->uid,vuser->user.unix_name, vuser->vuid));
    327 
    328         next_vuid++;
    329         num_validated_vuids++;
    330333
    331334        if (!session_claim(vuser)) {
Note: See TracChangeset for help on using the changeset viewer.