diff --git a/opal/mca/common/libfabric/libfabric/prov/psm/src/psmx_util.c b/opal/mca/common/libfabric/libfabric/prov/psm/src/psmx_util.c index 7a6f052ffd..db50285add 100644 --- a/opal/mca/common/libfabric/libfabric/prov/psm/src/psmx_util.c +++ b/opal/mca/common/libfabric/libfabric/prov/psm/src/psmx_util.c @@ -204,7 +204,7 @@ void *psmx_resolve_name(const char *servername, int port) return NULL; } - dest_addr = calloc(1,sizeof(*dest_addr)); + dest_addr = calloc(1,sizeof(psm_epid_t)); if (!dest_addr) { close(sockfd); return NULL;