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:
bcb8982
)
s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error
author
Stefan Metzmacher
<metze@samba.org>
Thu, 30 Apr 2009 15:24:58 +0000
(17:24 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 1 May 2009 13:12:07 +0000
(15:12 +0200)
We should not try to parse the result if the status is not NT_STATUS_OK.
metze
source4/libcli/raw/rawreadwrite.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/rawreadwrite.c
b/source4/libcli/raw/rawreadwrite.c
index a8c79963105c952e8da5cc341979287eb8296758..20565833309cdf3ae7e04558ae638072fdf041c6 100644
(file)
--- a/
source4/libcli/raw/rawreadwrite.c
+++ b/
source4/libcli/raw/rawreadwrite.c
@@
-305,7
+305,7
@@
_PUBLIC_ struct smbcli_request *smb_raw_write_send(struct smbcli_tree *tree, uni
NTSTATUS smb_raw_write_recv(struct smbcli_request *req, union smb_write *parms)
{
if (!smbcli_request_receive(req) ||
-
smbcli_request_is_error(req
)) {
+
!NT_STATUS_IS_OK(req->status
)) {
goto failed;
}