Commit 0c52589e authored by Matthieu Dorier's avatar Matthieu Dorier

added check that bulk handle is not null before incrementing its refcount

parent f67f1ac3
...@@ -144,8 +144,10 @@ public: ...@@ -144,8 +144,10 @@ public:
bulk(const bulk& other) bulk(const bulk& other)
: m_engine(other.m_engine), m_bulk(other.m_bulk), : m_engine(other.m_engine), m_bulk(other.m_bulk),
m_is_local(other.m_is_local), m_eager_mode(other.m_eager_mode) { m_is_local(other.m_is_local), m_eager_mode(other.m_eager_mode) {
hg_return_t ret = margo_bulk_ref_incr(m_bulk); if(other.m_bulk != HG_BULK_NULL) {
MARGO_ASSERT(ret, margo_bulk_ref_incr); hg_return_t ret = margo_bulk_ref_incr(m_bulk);
MARGO_ASSERT(ret, margo_bulk_ref_incr);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment