mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
tree-wide: some coccinelle fixes
This commit is contained in:
@@ -183,9 +183,8 @@ int request_process_traffic_control(Request *req) {
|
||||
tc = ASSERT_PTR(req->traffic_control);
|
||||
|
||||
r = traffic_control_is_ready_to_configure(link, tc);
|
||||
if (r <= 0) {
|
||||
if (r <= 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
r = traffic_control_configure(link, tc);
|
||||
if (r < 0)
|
||||
|
||||
@@ -221,13 +221,11 @@ static void test_dns_stream(bool tls) {
|
||||
log_info("test-resolved-stream: Started %s test", tls ? "TLS" : "TCP");
|
||||
|
||||
#if ENABLE_DNS_OVER_TLS
|
||||
if (tls) {
|
||||
/* For TLS mode, use DNS_OVER_TLS_OPPORTUNISTIC instead of
|
||||
* DNS_OVER_TLS_YES, just to make certificate validation more
|
||||
* lenient, allowing us to use self-signed certificates.
|
||||
* We never downgrade, everything we test always goes over TLS */
|
||||
if (tls)
|
||||
/* For TLS mode, use DNS_OVER_TLS_OPPORTUNISTIC instead of DNS_OVER_TLS_YES, just to make
|
||||
* certificate validation more lenient, allowing us to use self-signed certificates. We
|
||||
* never downgrade, everything we test always goes over TLS */
|
||||
manager.dns_over_tls_mode = DNS_OVER_TLS_OPPORTUNISTIC;
|
||||
}
|
||||
#endif
|
||||
|
||||
assert_se(sd_event_new(&event) >= 0);
|
||||
|
||||
Reference in New Issue
Block a user