Fix for:
CID 717142 (#1 of 1): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception
of type ceph::buffer::end_of_buffer is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
// read commands
if (list) {
- keyring.print(cout);
+ try {
+ keyring.print(cout);
+ } catch (ceph::buffer::end_of_buffer &eob) {
+ cout << "Exception (end_of_buffer) in print(), exit." << std::endl;
+ exit(1);
+ }
}
if (print_key) {
CryptoKey key;