summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-10-20 08:41:32 +0000
committerVolker Lendecke <vlendec@samba.org>2003-10-20 08:41:32 +0000
commitdf81637076fed4173d8900816c3ee3dfddc960a5 (patch)
tree04796af4587cb68bc5539050a7f35a40a6cc8195 /source3/libsmb
parent8a0706668d2e566246dc98121ddeb5a203d1abbc (diff)
downloadsamba-df81637076fed4173d8900816c3ee3dfddc960a5.tar.gz
samba-df81637076fed4173d8900816c3ee3dfddc960a5.tar.bz2
samba-df81637076fed4173d8900816c3ee3dfddc960a5.zip
We are doing NT error codes now.... If we have an NT error, report that
back the same way we handle the DOS error. Although I don't see why BUFFER_TOO_SMALL should not be handled as an error, simply copy the logic. This is only called from smbcacls and smbcquotas. Volker (This used to be commit 169f4dfee08e8de05e729fd48209df91cf8ba255)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clitrans.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index e6771ac688..92c1cc99ee 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -488,6 +488,17 @@ BOOL cli_receive_nt_trans(struct cli_state *cli,
}
}
+ /*
+ * Likewise for NT_STATUS_BUFFER_TOO_SMALL
+ */
+ if (cli_is_nt_error(cli)) {
+ if (!NT_STATUS_EQUAL(cli_nt_error(cli),
+ NT_STATUS_BUFFER_TOO_SMALL)) {
+ cli_signing_trans_stop(cli);
+ return(False);
+ }
+ }
+
/* parse out the lengths */
total_data = SVAL(cli->inbuf,smb_ntr_TotalDataCount);
total_param = SVAL(cli->inbuf,smb_ntr_TotalParameterCount);