From e4b3c6f1c4e97e205b925ea8febac1f53c3223c7 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 11 Dec 2014 20:12:13 -0800 Subject: [PATCH] libfabric psm: fix (void*) dereference Committed upstream to libfabric as well. --- opal/mca/common/libfabric/libfabric/prov/psm/src/psmx_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;