s4:wrepl_server: return NT_STATUS_CONNECTION_DISCONNECTED
[kai/samba-autobuild/.git] / source4 / wrepl_server / wrepl_out_helpers.c
index cee7bfae41dcac1aa819f050748e41aac403acec..660e1badb7e02b8786baf9fe85902b05bb46a78a 100644 (file)
@@ -223,7 +223,7 @@ static NTSTATUS wreplsrv_out_connect_recv(struct composite_context *c, TALLOC_CT
                        *wreplconn = talloc_reference(mem_ctx, state->wreplconn);
                        if (!*wreplconn) status = NT_STATUS_NO_MEMORY;
                } else {
-                       status = NT_STATUS_INVALID_CONNECTION;
+                       status = NT_STATUS_CONNECTION_DISCONNECTED;
                }
        }