From: Danny Al-Gaaf Date: Tue, 26 Feb 2013 14:56:03 +0000 (+0100) Subject: CephxProtocol.cc: catch end_of_buffer by reference X-Git-Tag: v0.59~95^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d783f95c204d8fdf60b668fd4990b3bc5e5d37c0;p=ceph.git CephxProtocol.cc: catch end_of_buffer by reference Follow 'Throw by value, catch by reference' to void copying and potential slicing the exception. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/auth/cephx/CephxProtocol.cc b/src/auth/cephx/CephxProtocol.cc index 34f31f70c72..483415fac02 100644 --- a/src/auth/cephx/CephxProtocol.cc +++ b/src/auth/cephx/CephxProtocol.cc @@ -403,7 +403,7 @@ bool cephx_verify_authorizer(CephContext *cct, KeyStore *keys, ::decode(global_id, indata); ::decode(service_id, indata); ::decode(ticket, indata); - } catch (buffer::end_of_buffer e) { + } catch (buffer::end_of_buffer &e) { // Unable to decode! return false; }