summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-02-15 02:46:13 +0000
committerTim Potter <tpot@samba.org>2002-02-15 02:46:13 +0000
commitcd38c3a71c74d2c62c0cf25a3b6e9ea460036ef6 (patch)
tree813ecc7fdf2e831439832e28008e78d7bad4b803 /source3/smbd
parent8cd8cfd4cfc916cab4e5d695722da91d9b1f05df (diff)
downloadsamba-cd38c3a71c74d2c62c0cf25a3b6e9ea460036ef6.tar.gz
samba-cd38c3a71c74d2c62c0cf25a3b6e9ea460036ef6.tar.bz2
samba-cd38c3a71c74d2c62c0cf25a3b6e9ea460036ef6.zip
Merge of smbclient print crash bug fix from app head.
(This used to be commit a56298d56ae67a764e9b9a43c1c568b7125e1c18)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 915063a5df..aab7b5079e 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -629,8 +629,10 @@ files_struct *open_file_shared(connection_struct *conn,char *fname, SMB_STRUCT_S
if (conn->printer) {
/* printers are handled completely differently. Most of the passed parameters are
ignored */
- *Access = DOS_OPEN_WRONLY;
- *action = FILE_WAS_CREATED;
+ if (Access)
+ *Access = DOS_OPEN_WRONLY;
+ if (action)
+ *action = FILE_WAS_CREATED;
return print_fsp_open(conn, fname);
}