summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-12-20 11:55:09 -0800
committerAndrew Bartlett <abartlet@samba.org>2013-01-09 15:28:42 +1100
commit5e483ab14785faf5bc011e36ac07646a624c3962 (patch)
tree1d65fe0fd2066624dd2daca3a9bbc5683dd0da30
parent2e2f46433c657f8e9e68aaaee15e24ed41244d82 (diff)
downloadsamba-5e483ab14785faf5bc011e36ac07646a624c3962.tar.gz
samba-5e483ab14785faf5bc011e36ac07646a624c3962.tar.bz2
samba-5e483ab14785faf5bc011e36ac07646a624c3962.zip
Remove unneeded variable "const struct auth_session_info *session_info"
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/smbd/uid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 298fa83112..9244f2997d 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -271,7 +271,6 @@ static bool change_to_user_internal(connection_struct *conn,
bool change_to_user(connection_struct *conn, uint64_t vuid)
{
- const struct auth_session_info *session_info = NULL;
struct user_struct *vuser;
int snum = SNUM(conn);
@@ -298,8 +297,7 @@ bool change_to_user(connection_struct *conn, uint64_t vuid)
return false;
}
- session_info = vuser->session_info;
- return change_to_user_internal(conn, session_info, vuid);
+ return change_to_user_internal(conn, vuser->session_info, vuid);
}
static bool change_to_user_by_session(connection_struct *conn,