journal-remote: bugfix to re-enable ssl key check (#10707)

This commit is contained in:
Markus Grimm 2018-11-12 07:47:47 +01:00 committed by Yu Watanabe
parent f628e3eea7
commit d7ef030b26
1 changed files with 3 additions and 1 deletions

View File

@ -1114,9 +1114,11 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
if (arg_listen_https || https_socket >= 0)
if (arg_listen_https || https_socket >= 0) {
if (load_certificates(&key, &cert, &trust) < 0)
return EXIT_FAILURE;
s.check_trust = !arg_trust_all;
}
if (create_remoteserver(&s, key, cert, trust) < 0)
return EXIT_FAILURE;