git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f36db3
)
Ensure we always reply in reply_printopen().
author
Jeremy Allison
<jra@samba.org>
Fri, 21 Nov 2008 19:06:33 +0000
(11:06 -0800)
committer
Jeremy Allison
<jra@samba.org>
Fri, 21 Nov 2008 19:06:33 +0000
(11:06 -0800)
Jeremy.
source/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source/smbd/reply.c
b/source/smbd/reply.c
index f78e8bd08355e227f41c8a4f015ab0a51b4fe910..9538a72e8d840baf10f42595c5c1d7b73903ed3e 100644
(file)
--- a/
source/smbd/reply.c
+++ b/
source/smbd/reply.c
@@
-4599,7
+4599,7
@@
void reply_printopen(struct smb_request *req)
connection_struct *conn = req->conn;
files_struct *fsp;
NTSTATUS status;
-
+
START_PROFILE(SMBsplopen);
if (req->wct < 2) {
@@
-4616,6
+4616,7
@@
void reply_printopen(struct smb_request *req)
status = file_new(conn, &fsp);
if(!NT_STATUS_IS_OK(status)) {
+ reply_nterror(req, status);
END_PROFILE(SMBsplopen);
return;
}
@@
-4632,7
+4633,7
@@
void reply_printopen(struct smb_request *req)
reply_outbuf(req, 1, 0);
SSVAL(req->outbuf,smb_vwv0,fsp->fnum);
-
+
DEBUG(3,("openprint fd=%d fnum=%d\n",
fsp->fh->fd, fsp->fnum));