1
1

If we are unable to find a path betwen us and the remote PTL return OMPI_UNREACH instead of OMPI_SUCCESS.

Update the count on the addr struct usage if and only if we match something (otherwise the field is set to null and we segfault).

This commit was SVN r4362.
Этот коммит содержится в:
George Bosilca 2005-02-10 00:03:37 +00:00
родитель 53fd2c8fa3
Коммит b88e28e72c

Просмотреть файл

@ -178,8 +178,12 @@ int mca_ptl_tcp_proc_insert(mca_ptl_tcp_proc_t* ptl_proc, mca_ptl_base_peer_t* p
} else if(ptl_peer->peer_addr != 0)
ptl_peer->peer_addr = peer_addr;
}
ptl_peer->peer_addr->addr_inuse++;
return OMPI_SUCCESS;
/* Make sure there is a common interface */
if( NULL != ptl_peer->peer_addr ) {
ptl_peer->peer_addr->addr_inuse++;
return OMPI_SUCCESS;
}
return OMPI_ERR_UNREACH;
}
/*