summaryrefslogtreecommitdiff
path: root/net/ceph14/files/patch-src_auth_KeyRing.cc
blob: 29faeae360f889c775b3099ab20547f358454275 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc
index a2833183633a..c4fc15a2380b 100644
--- src/auth/KeyRing.cc
+++ src/auth/KeyRing.cc
@@ -203,6 +203,12 @@ void KeyRing::decode(bufferlist::const_iterator& bl) {
   } catch (buffer::error& err) {
     keys.clear();
     decode_plaintext(start_pos);
+  }catch (buffer::end_of_buffer& err) {
+    keys.clear();
+    decode_plaintext(start_pos);
+  } catch (exception& e){
+    keys.clear();
+    decode_plaintext(start_pos);
   }
 }