Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug fix inspired by Arnaud Guiersh's patch but that required one day of investigation...
[simgrid.git] / src / msg / msg_mailbox.c
index 1f98410..a6f053b 100644 (file)
@@ -185,7 +185,6 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task,
 {
   xbt_ex_t e;
   MSG_error_t ret = MSG_OK;
-  smx_comm_t comm;
   simdata_task_t t_simdata = NULL;
   m_process_t process = MSG_process_self();
 #ifdef HAVE_TRACING
@@ -219,7 +218,7 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task,
 
     SIMIX_network_send(mailbox->rdv, t_simdata->message_size,
                        t_simdata->rate, timeout, task, sizeof(void *),
-                       &comm, task);
+                       &(t_simdata->comm), task);
   }
 
   CATCH(e) {