git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ad691
)
s3: Fix crashes in the printing code
author
Volker Lendecke
<vl@samba.org>
Thu, 15 Jul 2010 08:36:40 +0000
(10:36 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 15 Jul 2010 08:38:37 +0000
(10:38 +0200)
create_conn_struct did not create the conn->sconn!=NULL assumption we now
depend on. Thanks to Andreas Schneider for testing!
source3/smbd/msdfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/msdfs.c
b/source3/smbd/msdfs.c
index 433de8aea3ea586525a2ac6c75a5cb3786e198a9..03de7e85de378298bb5e87936912a62740b15faa 100644
(file)
--- 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) {