summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/wbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/wbclient.c b/source3/lib/wbclient.c
index 0d310d821b..63401fad46 100644
--- a/source3/lib/wbclient.c
+++ b/source3/lib/wbclient.c
@@ -621,8 +621,8 @@ static void wb_trans_done(struct tevent_req *subreq)
ret = wb_simple_trans_recv(subreq, state, &state->wb_resp, &err);
TALLOC_FREE(subreq);
-
- if (wb_trans_retry(req, state, map_wbc_err_from_errno(err))) {
+ if ((ret == -1)
+ && wb_trans_retry(req, state, map_wbc_err_from_errno(err))) {
return;
}