|
|
ecf709 |
From 0e1416e65c99aca947e589bfa56d5bc832c023d6 Mon Sep 17 00:00:00 2001
|
|
|
ecf709 |
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
ecf709 |
Date: Sat, 27 May 2017 14:39:45 +0200
|
|
|
ecf709 |
Subject: [PATCH 165/166] SECRETS: Fix warning Wpointer-bool-conversion
|
|
|
ecf709 |
|
|
|
ecf709 |
Debug messages would always say that verify_peer and verify_host
|
|
|
ecf709 |
are enabled. Even though they would be explicitly disabled.
|
|
|
ecf709 |
|
|
|
ecf709 |
src/responder/secrets/proxy.c:143:18: error:
|
|
|
ecf709 |
address of 'cfg->verify_peer' will always evaluate to
|
|
|
ecf709 |
'true' [-Werror,-Wpointer-bool-conversion]
|
|
|
ecf709 |
(&cfg->verify_peer ? "true" : "false"));
|
|
|
ecf709 |
~~~~~^~~~~~~~~~~ ~
|
|
|
ecf709 |
src/util/debug.h:108:32: note: expanded from macro 'DEBUG'
|
|
|
ecf709 |
format, ##__VA_ARGS__); \
|
|
|
ecf709 |
^~~~~~~~~~~
|
|
|
ecf709 |
src/responder/secrets/proxy.c:149:18: error:
|
|
|
ecf709 |
address of 'cfg->verify_host' will always evaluate to
|
|
|
ecf709 |
'true' [-Werror,-Wpointer-bool-conversion]
|
|
|
ecf709 |
(&cfg->verify_host ? "true" : "false"));
|
|
|
ecf709 |
~~~~~^~~~~~~~~~~ ~
|
|
|
ecf709 |
src/util/debug.h:108:32: note: expanded from macro 'DEBUG'
|
|
|
ecf709 |
format, ##__VA_ARGS__); \
|
|
|
ecf709 |
^~~~~~~~~~~
|
|
|
ecf709 |
|
|
|
ecf709 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
ecf709 |
---
|
|
|
ecf709 |
src/responder/secrets/proxy.c | 4 ++--
|
|
|
ecf709 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
ecf709 |
|
|
|
ecf709 |
diff --git a/src/responder/secrets/proxy.c b/src/responder/secrets/proxy.c
|
|
|
ecf709 |
index 9c2aa425d414728d10aa830f640632e98def3c1c..a4e97f83ef406e71a1e6509a6b719c47afdfd5b8 100644
|
|
|
ecf709 |
--- a/src/responder/secrets/proxy.c
|
|
|
ecf709 |
+++ b/src/responder/secrets/proxy.c
|
|
|
ecf709 |
@@ -140,13 +140,13 @@ static int proxy_sec_get_cfg(struct proxy_context *pctx,
|
|
|
ecf709 |
true, &cfg->verify_peer);
|
|
|
ecf709 |
if (ret) goto done;
|
|
|
ecf709 |
DEBUG(SSSDBG_CONF_SETTINGS, "verify_peer: %s\n",
|
|
|
ecf709 |
- (&cfg->verify_peer ? "true" : "false"));
|
|
|
ecf709 |
+ cfg->verify_peer ? "true" : "false");
|
|
|
ecf709 |
|
|
|
ecf709 |
ret = confdb_get_bool(pctx->cdb, secreq->cfg_section, "verify_host",
|
|
|
ecf709 |
true, &cfg->verify_host);
|
|
|
ecf709 |
if (ret) goto done;
|
|
|
ecf709 |
DEBUG(SSSDBG_CONF_SETTINGS, "verify_host: %s\n",
|
|
|
ecf709 |
- (&cfg->verify_host ? "true" : "false"));
|
|
|
ecf709 |
+ cfg->verify_host ? "true" : "false");
|
|
|
ecf709 |
|
|
|
ecf709 |
ret = proxy_get_config_string(pctx, cfg, false, secreq,
|
|
|
ecf709 |
"capath", &cfg->capath);
|
|
|
ecf709 |
--
|
|
|
ecf709 |
2.9.4
|
|
|
ecf709 |
|