Skip to content

Commit

Permalink
cleanup: refactored an polymorphic exception catch
Browse files Browse the repository at this point in the history
- original code tried to catch a polymorphic exception by value
- this removes a compiler warning from the build
  • Loading branch information
franku committed Jul 3, 2018
1 parent e874515 commit 2682584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/tls_openssl.cc
Expand Up @@ -501,7 +501,7 @@ static unsigned int psk_server_cb(SSL *ssl,
Dmsg1(100, "psk_server_cb. psk: %s.\n", psk);
}
return result;
} catch (const std::out_of_range /* &exception */) {
} catch (const std::out_of_range & /* exception */) {
// ssl context unknown
Dmsg0(100, "Error, TLS-PSK credentials not found.\n");
return 0;
Expand Down

0 comments on commit 2682584

Please sign in to comment.