Fix cut & pasto that prevented the verify_server option from being set.

The "log_server_verify" setting passed from the policy plugin was
applied to the "keepalive" option instead of "verify_server".
From Krisztian Kovacs.
This commit is contained in:
Todd C. Miller
2021-04-30 11:03:23 -06:00
parent 01bdfd3be2
commit af0345e238

View File

@@ -489,7 +489,7 @@ iolog_deserialize_info(struct log_details *details, char * const user_info[],
if (strncmp(*cur, "log_server_verify=", sizeof("log_server_verify=") - 1) == 0) {
int val = sudo_strtobool(*cur + sizeof("log_server_verify=") - 1);
if (val != -1) {
details->keepalive = val;
details->verify_server = val;
} else {
sudo_debug_printf(SUDO_DEBUG_WARN,
"%s: unable to parse %s", __func__, *cur);