]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: return error if we are unable to parse keyring file
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 6 Jun 2016 07:51:18 +0000 (15:51 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 7 Jun 2016 02:19:01 +0000 (10:19 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/auth/KeyRing.cc

index 527076df025f931f937f9fdd7a64293905b4748a..b946a298b48bbe130d3e0dca69d6524272bc830a 100644 (file)
@@ -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;