]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw ldap: safe_read_file can return < 0
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 4 Jan 2019 20:31:56 +0000 (15:31 -0500)
committerPrashant D <pdhange@redhat.com>
Fri, 25 Jan 2019 01:00:45 +0000 (20:00 -0500)
commitc0564c2f7efe2ef86e3f58316cd2dad3908199b0
tree20c305d8e69c32fdc30059b9f164182b5f9ba5aa
parent31e008a087dc03ca9961103e3b2272e72fc18eed
rgw ldap: safe_read_file can return < 0

Avoid invalid string access when LDAP auth is enabled, but LDAP
secret is not set.  This is Casey's fix for the problem.

Fixes: https://tracker.ceph.com/issues/24228
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 65cd8accc127c6765f083a389455ce73b7517e11)
src/rgw/rgw_ldap.cc