diff options
author | Jack Lloyd <[email protected]> | 2018-03-16 12:01:01 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-16 12:01:01 -0400 |
commit | 6c8ffb4d2ee1f762804fc8d6a90a3d1761462503 (patch) | |
tree | 2b88c8d5a809cca03f3f66e6c1a053b1b7fa338a /src/lib/kdf/prf_tls | |
parent | f787047f33d073036883b609d293656510ce8b16 (diff) |
Catch exceptions by reference not value
Fixes a new warning in GCC 8
Diffstat (limited to 'src/lib/kdf/prf_tls')
-rw-r--r-- | src/lib/kdf/prf_tls/prf_tls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdf/prf_tls/prf_tls.cpp b/src/lib/kdf/prf_tls/prf_tls.cpp index 69383e98e..d914df77e 100644 --- a/src/lib/kdf/prf_tls/prf_tls.cpp +++ b/src/lib/kdf/prf_tls/prf_tls.cpp @@ -29,7 +29,7 @@ void P_hash(uint8_t out[], size_t out_len, { mac.set_key(secret, secret_len); } - catch(Invalid_Key_Length) + catch(Invalid_Key_Length&) { throw Internal_Error("The premaster secret of " + std::to_string(secret_len) + |