s4-resolver: do not use all the A and AAAA records, those after a NS are not the...
[ddiss/samba.git] / source4 / dsdb / repl / drepl_out_helpers.c
index 8cfafb9527e43ad7ce3d7a29ec9b363a61ff2ebc..16825d400b52597e093a713e0b5ea8627ff665aa 100644 (file)
@@ -845,7 +845,7 @@ static void dreplsrv_update_refs_done(struct tevent_req *subreq)
                 * running production as this error otherwise never happen and
                 * due to the fact the send a DsReplicaUpdateRefs after each getNcChanges
                 */
-               if (!W_ERROR_EQUAL(werr, WERR_DS_DRA_BUSY)) {
+               if (!W_ERROR_EQUAL(r->out.result, WERR_DS_DRA_BUSY)) {
                        tevent_req_nterror(req, status);
                        return;
                }