summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-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);
}