summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-15 10:36:40 +0200
committerVolker Lendecke <vl@samba.org>2010-07-15 10:38:37 +0200
commitff93d58b60458678436f2f983803705020537991 (patch)
treeb314d5a5af730f7a5ac759dd48783db7f09dd283 /source3
parent23ad6919a1e5f16d02e22adcf36ea7f039a9eeea (diff)
downloadsamba-ff93d58b60458678436f2f983803705020537991.tar.gz
samba-ff93d58b60458678436f2f983803705020537991.tar.bz2
samba-ff93d58b60458678436f2f983803705020537991.zip
s3: Fix crashes in the printing code
create_conn_struct did not create the conn->sconn!=NULL assumption we now depend on. Thanks to Andreas Schneider for testing!
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/msdfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 433de8aea3..03de7e85de 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -255,6 +255,9 @@ NTSTATUS create_conn_struct(TALLOC_CTX *ctx,
conn->params->service = snum;
+ conn->sconn = smbd_server_conn;
+ conn->sconn->smb1.tcons.num_open += 1;
+
if (server_info != NULL) {
conn->server_info = copy_serverinfo(conn, server_info);
if (conn->server_info == NULL) {