]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-gatewayd: return -EINVAL if ARG_TRUST and HAVE_GNUTLS (#5181)
authorYi EungJun <semtlenori@gmail.com>
Mon, 30 Jan 2017 15:24:06 +0000 (00:24 +0900)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 30 Jan 2017 15:24:06 +0000 (18:24 +0300)
This bug was introduced by 1aa1e59.

src/journal-remote/journal-gatewayd.c

index 361601791883dca1479b158b88ee31151043a9f9..f86b67faa27b6916fa78cc905be6961ca9d51b45 100644 (file)
@@ -958,6 +958,7 @@ static int parse_argv(int argc, char *argv[]) {
                         break;
 #else
                         log_error("Option --trust is not available.");
+                        return -EINVAL;
 #endif
                 case 'D':
                         arg_directory = optarg;