From: Volker Lendecke Date: Tue, 4 Dec 2007 12:13:45 +0000 (+0100) Subject: When allocating a new vuid, also avoid partial ones X-Git-Tag: samba-3.0.28a~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6415923e26a2d7b5a672a39cf179944302966d8b;p=thirdparty%2Fsamba.git When allocating a new vuid, also avoid partial ones --- diff --git a/source/smbd/password.c b/source/smbd/password.c index bf4e9258ff2..4ea1d9a83f4 100644 --- a/source/smbd/password.c +++ b/source/smbd/password.c @@ -175,7 +175,8 @@ int register_vuid(auth_serversupplied_info *server_info, ZERO_STRUCTP(vuser); /* Allocate a free vuid. Yes this is a linear search... :-) */ - while( get_valid_user_struct(next_vuid) != NULL ) { + while( (get_valid_user_struct(next_vuid) != NULL) + || (get_partial_auth_user_struct(next_vuid) != NULL) ) { next_vuid++; /* Check for vuid wrap. */ if (next_vuid == UID_FIELD_INVALID)