git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d656ed
)
libcli: Simplify tstream_npa_connect_readv_done()
author
Volker Lendecke
<vl@samba.org>
Tue, 16 Feb 2021 16:21:57 +0000
(17:21 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 9 Mar 2021 22:36:28 +0000
(22:36 +0000)
tevent_req_error takes care of the ==0 case
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/named_pipe_auth/npa_tstream.c
patch
|
blob
|
history
diff --git
a/libcli/named_pipe_auth/npa_tstream.c
b/libcli/named_pipe_auth/npa_tstream.c
index 90c1e2f4de2bfdc0bc177da1f33c041454942b30..8c07f2e76f929d07a3e707feef12d491b8a2cfff 100644
(file)
--- a/
libcli/named_pipe_auth/npa_tstream.c
+++ b/
libcli/named_pipe_auth/npa_tstream.c
@@
-253,8
+253,7
@@
static void tstream_npa_connect_readv_done(struct tevent_req *subreq)
err = tstream_u32_read_recv(subreq, state, &in.data, &in.length);
TALLOC_FREE(subreq);
- if (err != 0) {
- tevent_req_error(req, err);
+ if (tevent_req_error(req, err)) {
return;
}