diff options
author | Jeremy Allison <jra@samba.org> | 2012-12-20 11:53:11 -0800 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-09 15:28:34 +1100 |
commit | 0a09ffd188f7bc9d8e9e4272af355e53081bf7da (patch) | |
tree | d7cdf7caf2bd765fa5bb860c8f564a667f038193 /source3/smbd | |
parent | 45845f5ba13ad4f5f12c22596ac5905a6cebec31 (diff) | |
download | samba-0a09ffd188f7bc9d8e9e4272af355e53081bf7da.tar.gz samba-0a09ffd188f7bc9d8e9e4272af355e53081bf7da.tar.bz2 samba-0a09ffd188f7bc9d8e9e4272af355e53081bf7da.zip |
Remove the second set of {} braces, no longer needed.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/uid.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 9109f057ab..9fc5d7c35d 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -141,33 +141,31 @@ static bool check_user_ok(connection_struct *conn, session_info->info->domain_name, NULL, session_info->security_token, lp_admin_users(snum)); - { - ent = &conn->vuid_cache.array[conn->vuid_cache.next_entry]; + ent = &conn->vuid_cache.array[conn->vuid_cache.next_entry]; - conn->vuid_cache.next_entry = - (conn->vuid_cache.next_entry + 1) % VUID_CACHE_SIZE; + conn->vuid_cache.next_entry = + (conn->vuid_cache.next_entry + 1) % VUID_CACHE_SIZE; - TALLOC_FREE(ent->session_info); + TALLOC_FREE(ent->session_info); - /* - * If force_user was set, all session_info's are based on the same - * username-based faked one. - */ - - ent->session_info = copy_session_info( - conn, conn->force_user ? conn->session_info : session_info); + /* + * If force_user was set, all session_info's are based on the same + * username-based faked one. + */ - if (ent->session_info == NULL) { - ent->vuid = UID_FIELD_INVALID; - return false; - } + ent->session_info = copy_session_info( + conn, conn->force_user ? conn->session_info : session_info); - ent->vuid = vuid; - ent->read_only = readonly_share; - free_conn_session_info_if_unused(conn); - conn->session_info = ent->session_info; + if (ent->session_info == NULL) { + ent->vuid = UID_FIELD_INVALID; + return false; } + ent->vuid = vuid; + ent->read_only = readonly_share; + free_conn_session_info_if_unused(conn); + conn->session_info = ent->session_info; + conn->read_only = readonly_share; if (admin_user) { DEBUG(2,("check_user_ok: user %s is an admin user. " |