1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error

We should not try to parse the result if the status is not NT_STATUS_OK.

metze
This commit is contained in:
Stefan Metzmacher 2009-04-30 17:24:58 +02:00
parent bcb89826de
commit b97a591e2c

View File

@ -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) NTSTATUS smb_raw_write_recv(struct smbcli_request *req, union smb_write *parms)
{ {
if (!smbcli_request_receive(req) || if (!smbcli_request_receive(req) ||
smbcli_request_is_error(req)) { !NT_STATUS_IS_OK(req->status)) {
goto failed; goto failed;
} }