Correctly invalidate intermediate vuids
authorVolker Lendecke <vl@sernet.de>
Tue, 4 Dec 2007 12:16:37 +0000 (13:16 +0100)
committerVolker Lendecke <vl@sernet.de>
Tue, 4 Dec 2007 12:23:58 +0000 (13:23 +0100)
commit33860a8434b7892c0d2f4f50effc448fa4a6e160
tree3cfc36cda5724ed372d29137722abf3dc5e0f40f
parent6415923e26a2d7b5a672a39cf179944302966d8b
Correctly invalidate intermediate vuids

Because of the "&& usp->server_info" test in get_valid_user_struct,
invalidate_vuid() called for an intermediate vuid would never do what it was
supposed to do. There is no server_info in the intermediate vuids.

This fixes a memleak, it was found for a client that does silly sequences of
sesssionsetup/ulogoff for every operation.
source/smbd/password.c
source/smbd/sesssetup.c