]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: rados_ioctx_destroy check for initialized ioctx 47165/head
authorNitzanMordhai <nmordech@redhat.com>
Tue, 19 Jul 2022 08:35:32 +0000 (08:35 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Tue, 19 Jul 2022 08:35:43 +0000 (08:35 +0000)
commite465cfc62ae0f982edb60291c67f4d76a71efd15
treebb7ca9c0a6d487de939cf94abb17301793c23073
parent68b9458aea588dc11af29a8714297093dd0a6c28
librados: rados_ioctx_destroy check for initialized ioctx

If rados_ioctx_destroy called with un-initilized ioctx we will hit segmented fault
checking ioctx before calling put will prevent that.

Fixes: https://tracker.ceph.com/issues/55001
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
src/librados/librados_c.cc