This is a hack to fix races which happen with the RAW-RENAME and RAW-OPLOCK
tests. We should try to remove it later.
metze
TALLOC_CTX *mem_ctx = talloc_tos();
uint8_t *inbuf;
+ /* TODO: remove this hack */
+ message_dispatch(smbd_messaging_context());
+
inbuf = (uint8_t *)talloc_memdup(mem_ctx, msg->buf.data,
msg->buf.length);
if (inbuf == NULL) {
TALLOC_CTX *mem_ctx = talloc_tos();
NTSTATUS status;
+ /* TODO: remove this hack */
+ message_dispatch(smbd_messaging_context());
+
/* TODO: make this completely nonblocking */
status = receive_smb_talloc(mem_ctx, smbd_server_fd(),