From b479659836aa57ff7fb1674a0571aa9a4038a684 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 23 Sep 2014 22:33:37 +0200 Subject: [PATCH] do not allow the combination of AUTH_TYPE_CERTIFICATE and unix-conn-file --- src/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config.c b/src/config.c index 02f2ab13..beff0332 100644 --- a/src/config.c +++ b/src/config.c @@ -438,6 +438,11 @@ unsigned force_cert_auth; READ_STATIC_STRING("pid-file", pid_file); READ_STRING("unix-conn-file", config->unix_conn_file); + if (config->unix_conn_file != NULL && (config->auth_types & AUTH_TYPE_CERTIFICATE)) { + fprintf(stderr, "The option 'unix-conn-file' cannot be combined with 'auth=certificate'\n"); + exit(1); + } + READ_STRING("socket-file", config->socket_file_prefix); READ_STRING("occtl-socket-file", config->occtl_socket_file); if (config->occtl_socket_file == NULL)