From: xie xingguo Date: Mon, 6 Jun 2016 07:51:18 +0000 (+0800) Subject: auth: return error if we are unable to parse keyring file X-Git-Tag: ses5-milestone5~239^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d55f43f1b378a544864743ed3531dcd7ad566e0f;p=ceph.git auth: return error if we are unable to parse keyring file Signed-off-by: xie xingguo --- diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc index 527076df025f..b946a298b48b 100644 --- a/src/auth/KeyRing.cc +++ b/src/auth/KeyRing.cc @@ -233,6 +233,7 @@ int KeyRing::load(CephContext *cct, const std::string &filename) } catch (const buffer::error& err) { lderr(cct) << "error parsing file " << filename << dendl; + return -EIO; } ldout(cct, 2) << "KeyRing::load: loaded key file " << filename << dendl;