From 12f4d01f4a9a99690a9f3421160bb1cea85aa9ff Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 29 Dec 2008 22:01:57 +0100 Subject: First part of bugfix for #5933 Ofer Tal fully correctly noted that we're incrementing num_validated_vuids twice per session setup, but decrement it only once. Looking at sesssetup.c we always call register_initial_vuid() before register_existing_vuid(), so there's no point in incrementing it in register_existing_vuid(). Jeremy, please check! --- source3/smbd/password.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 68e134a0d6..d729c2e77b 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -281,9 +281,6 @@ int register_existing_vuid(uint16 vuid, "and will be vuid %u\n", (int)vuser->server_info->utok.uid, vuser->server_info->unix_name, vuser->vuid)); - next_vuid++; - num_validated_vuids++; - if (!session_claim(vuser)) { DEBUG(1, ("register_existing_vuid: Failed to claim session " "for vuid=%d\n", -- cgit