]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: Fix invalid memory dereference in acm_process_join_resp
authorSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:04:19 +0000 (12:04 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 9 Apr 2014 19:04:19 +0000 (12:04 -0700)
commit66840390c85647ba7eb462ca5f30b0e2cd898adb
tree17ef417062286b7467e6e5a52c09169cb23128d1
parentda6f9428f97b4cd6b57a44add2a16ee0f08a9f21
ibacm: Fix invalid memory dereference in acm_process_join_resp

If a join request fails, the dest pointer may not be initialized.
This can result in the ibacm daemon crashing.  Fix the crash and
ensure that the multicast state is set correctly in case the
join fails by initializing the state to ACM_INIT before sending
the join request.

Problem reported by: Kaike Wan <kaike.wan@intel.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c