summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-03 06:19:28 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-06 21:26:05 +0100
commitd95dbb86c592590dd5b64d2e307470943260834d (patch)
treeff1ce8e1be6ee297c8d9ca231e7b36954d4ab686 /source3/smbd
parentc7f67142c0693e73355e1a5748f729fad04415e0 (diff)
downloadsamba-d95dbb86c592590dd5b64d2e307470943260834d.tar.gz
samba-d95dbb86c592590dd5b64d2e307470943260834d.tar.bz2
samba-d95dbb86c592590dd5b64d2e307470943260834d.zip
s3:msdfs: set the 'cnum' field to invalid for faked connection_structs
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/msdfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index a00fd6f769..162b6dfb36 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -263,6 +263,7 @@ NTSTATUS create_conn_struct(TALLOC_CTX *ctx,
}
conn->params->service = snum;
+ conn->cnum = (unsigned)-1;
conn->sconn = sconn;
conn->sconn->num_tcons_open++;