s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used()
authorMichael Adam <obnox@samba.org>
Wed, 1 Feb 2012 14:25:12 +0000 (14:25 +0000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 3 Feb 2012 19:29:39 +0000 (20:29 +0100)
Accidential "=" instead of "==".

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb  1 17:10:15 CET 2012 on sn-devel-104
(cherry picked from commit 6ba09e039e4efee33ce6b8cd9f919409656c2afb)

Fix bug #8738 (SMB2 server will not release unused shares).

source3/smbd/conn.c

index 833147b1a645d76d584259b62278b77f8a4d94a1..8a96e880538efb67e1d02c3c049e2fdbf5e38198 100644 (file)
@@ -67,7 +67,7 @@ bool conn_snum_used(int snum)
                        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;
                                }
                        }