Skip to content

Commit a9bc57e

Browse files
committed
cb_relay_timeout: fix typo, set relay timeout, not server timeout
Fixes a bug where setting the timeout in the relay section of sudo_logsrvd.conf would actually set the server timeout instead. Reported by and fix from exp0l0zzz
1 parent cc3d47b commit a9bc57e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

logsrvd/logsrvd_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ cb_relay_timeout(struct logsrvd_config *config, const char *str, size_t offset)
835835
if (errstr != NULL)
836836
debug_return_bool(false);
837837

838-
config->server.timeout.tv_sec = timeout;
838+
config->relay.timeout.tv_sec = timeout;
839839

840840
debug_return_bool(true);
841841
}

0 commit comments

Comments
 (0)