]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote: bugfix to re-enable ssl key check (#10707)
authorMarkus Grimm <grimm@magazino.eu>
Mon, 12 Nov 2018 06:47:47 +0000 (07:47 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Nov 2018 06:47:47 +0000 (15:47 +0900)
src/journal-remote/journal-remote-main.c

index b52e9329ef2b984be90b4d43eb77e8a12b610e3b..76e7af28bff57c869403ac2f6a9cd0c03a11f6db 100644 (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;