Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Verify NULL parameter before calling function.
authordonassbr <donassbr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 14 Jan 2010 15:57:25 +0000 (15:57 +0000)
committerdonassbr <donassbr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 14 Jan 2010 15:57:25 +0000 (15:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7007 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_network.c

index bdca461..2aa4773 100644 (file)
@@ -246,7 +246,7 @@ static inline void SIMIX_communication_wait_for_completion(smx_comm_t comm, doub
         DEBUG1("Communication timeout! %p", comm);
         if(comm->act && SIMIX_action_get_state(comm->act) == SURF_ACTION_RUNNING)
           SIMIX_communication_cancel(comm);
-        else
+        else if (comm->rdv)
           SIMIX_rdv_remove(comm->rdv, comm);
 
         /* Make sure that everyone sleeping on that semaphore is awake, and that nobody will ever block on it */