summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-29 11:08:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:37 -0500
commitbd1efc1235b647f6845fb7d6218cf2b4068e9f0a (patch)
treebc3bab485c794479e425b90020878dddae753f13 /source4/libcli/smb2
parent1ce7b027e6ab7e713b36daed516ab90c1d80d61d (diff)
downloadsamba-bd1efc1235b647f6845fb7d6218cf2b4068e9f0a.tar.gz
samba-bd1efc1235b647f6845fb7d6218cf2b4068e9f0a.tar.bz2
samba-bd1efc1235b647f6845fb7d6218cf2b4068e9f0a.zip
r16669: this calls don't expect any valid error codes than NT_STATUS_OK
metze (This used to be commit 429215113bd999466141df0a2e3b3097d677df1f)
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/close.c2
-rw-r--r--source4/libcli/smb2/flush.c2
-rw-r--r--source4/libcli/smb2/keepalive.c2
-rw-r--r--source4/libcli/smb2/logoff.c2
-rw-r--r--source4/libcli/smb2/setinfo.c2
-rw-r--r--source4/libcli/smb2/tdis.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/source4/libcli/smb2/close.c b/source4/libcli/smb2/close.c
index 9156e7d10d..1e2ef3afb1 100644
--- a/source4/libcli/smb2/close.c
+++ b/source4/libcli/smb2/close.c
@@ -51,7 +51,7 @@ struct smb2_request *smb2_close_send(struct smb2_tree *tree, struct smb2_close *
NTSTATUS smb2_close_recv(struct smb2_request *req, struct smb2_close *io)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}
diff --git a/source4/libcli/smb2/flush.c b/source4/libcli/smb2/flush.c
index 0eb5ed7a3b..531322ec4f 100644
--- a/source4/libcli/smb2/flush.c
+++ b/source4/libcli/smb2/flush.c
@@ -50,7 +50,7 @@ struct smb2_request *smb2_flush_send(struct smb2_tree *tree, struct smb2_flush *
NTSTATUS smb2_flush_recv(struct smb2_request *req, struct smb2_flush *io)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}
diff --git a/source4/libcli/smb2/keepalive.c b/source4/libcli/smb2/keepalive.c
index ac31afd4dc..75161d8fb5 100644
--- a/source4/libcli/smb2/keepalive.c
+++ b/source4/libcli/smb2/keepalive.c
@@ -48,7 +48,7 @@ struct smb2_request *smb2_keepalive_send(struct smb2_transport *transport)
NTSTATUS smb2_keepalive_recv(struct smb2_request *req)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}
diff --git a/source4/libcli/smb2/logoff.c b/source4/libcli/smb2/logoff.c
index cfaa389ef8..67129319fb 100644
--- a/source4/libcli/smb2/logoff.c
+++ b/source4/libcli/smb2/logoff.c
@@ -50,7 +50,7 @@ struct smb2_request *smb2_logoff_send(struct smb2_session *session)
NTSTATUS smb2_logoff_recv(struct smb2_request *req)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}
diff --git a/source4/libcli/smb2/setinfo.c b/source4/libcli/smb2/setinfo.c
index c5fc0577d6..4b1d4ab608 100644
--- a/source4/libcli/smb2/setinfo.c
+++ b/source4/libcli/smb2/setinfo.c
@@ -59,7 +59,7 @@ struct smb2_request *smb2_setinfo_send(struct smb2_tree *tree, struct smb2_setin
NTSTATUS smb2_setinfo_recv(struct smb2_request *req)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}
diff --git a/source4/libcli/smb2/tdis.c b/source4/libcli/smb2/tdis.c
index f89e5c8e90..1c6b3e978e 100644
--- a/source4/libcli/smb2/tdis.c
+++ b/source4/libcli/smb2/tdis.c
@@ -48,7 +48,7 @@ struct smb2_request *smb2_tdis_send(struct smb2_tree *tree)
NTSTATUS smb2_tdis_recv(struct smb2_request *req)
{
if (!smb2_request_receive(req) ||
- smb2_request_is_error(req)) {
+ !smb2_request_is_ok(req)) {
return smb2_request_destroy(req);
}