committed by
Keith Winstein
parent
fb6d07e566
commit
49fc21c8a3
@@ -58,7 +58,7 @@ void test_bad_decrypt( Session &decryption_session ) {
|
||||
bool got_exn = false;
|
||||
try {
|
||||
decryption_session.decrypt( bad_ct );
|
||||
} catch ( CryptoException e ) {
|
||||
} catch ( const CryptoException& e ) {
|
||||
got_exn = true;
|
||||
|
||||
/* The "bad decrypt" exception needs to be non-fatal, otherwise we are
|
||||
@@ -128,7 +128,7 @@ int main( int argc, char *argv[] ) {
|
||||
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
|
||||
try {
|
||||
test_one_session();
|
||||
} catch ( CryptoException e ) {
|
||||
} catch ( const CryptoException& e ) {
|
||||
fprintf( stderr, "Crypto exception: %s\r\n",
|
||||
e.text.c_str() );
|
||||
fatal_assert( false );
|
||||
|
||||
Reference in New Issue
Block a user