]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: close the provider endpoint when it fails to assign a name to a core endpoint
authorKaike Wan <kaike.wan@intel.com>
Wed, 3 Dec 2014 19:37:51 +0000 (11:37 -0800)
committerSean Hefty <sean.hefty@intel.com>
Wed, 3 Dec 2014 19:43:30 +0000 (11:43 -0800)
commit537f0ae37696d9bd99036095b333542dfa839108
treefab6eb4037e9f3c9e7e0ad14459441cbe31782cf
parent897fe7d6910d5a50742a6faf24e6de6bef6ce06f
ibacm: close the provider endpoint when it fails to assign a name to a core endpoint

In function acm_ep_up(), when it fails to assign any name to an endpoint, the
endpoint in the provider is not properly closed before the core endpoint is
freed. This may cause segfault when ibacmp tries to join multicast group with
a stale core endpoint pointer.

Signed-off-by: Kaike Wan <kaike.wan@intel.com>
src/acm.c