summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-01 14:25:12 +0000
committerMichael Adam <obnox@samba.org>2012-02-01 17:10:13 +0100
commit6ba09e039e4efee33ce6b8cd9f919409656c2afb (patch)
tree71f865df94bbb4e3cfeadad996955360c5e75b3c /source3
parent204c07501d05f3d7e4657ce4422709ad64e087e2 (diff)
downloadsamba-6ba09e039e4efee33ce6b8cd9f919409656c2afb.tar.gz
samba-6ba09e039e4efee33ce6b8cd9f919409656c2afb.tar.bz2
samba-6ba09e039e4efee33ce6b8cd9f919409656c2afb.zip
s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used()
Accidential "=" instead of "==". Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Feb 1 17:10:15 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index f9ccfd96f5..e17d3744e5 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -66,7 +66,7 @@ bool conn_snum_used(struct smbd_server_connection *sconn,
for (ptcon = sess->tcons.list; ptcon; ptcon = ptcon->next) {
if (ptcon->compat_conn &&
ptcon->compat_conn->params &&
- (ptcon->compat_conn->params->service = snum)) {
+ (ptcon->compat_conn->params->service == snum)) {
return true;
}
}