diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-15 10:36:40 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-15 10:38:37 +0200 |
commit | ff93d58b60458678436f2f983803705020537991 (patch) | |
tree | b314d5a5af730f7a5ac759dd48783db7f09dd283 | |
parent | 23ad6919a1e5f16d02e22adcf36ea7f039a9eeea (diff) | |
download | samba-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!
-rw-r--r-- | source3/smbd/msdfs.c | 3 |
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) { |