Fix wb_trans_done after conversion to unix calling conventions
authorVolker Lendecke <vl@samba.org>
Tue, 19 May 2009 21:06:48 +0000 (23:06 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 19 May 2009 21:09:26 +0000 (23:09 +0200)
source3/lib/wbclient.c

index 0d310d821b2d985b5c14ce283558ee20a447051d..63401fad46232d6822df51046d7c6c3783e9f4bc 100644 (file)
@@ -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;
        }