From b19b8d1718c7e93d9ed1df03ee27334f56e9099f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 26 Apr 2013 14:17:50 +0200 Subject: Use gp_boolean_is_true from interposer plugin's GSS_USE_PROXY check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner Reviewed-by: Simo Sorce --- proxy/src/mechglue/gss_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proxy/src') diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c index 5713320..aac213e 100644 --- a/proxy/src/mechglue/gss_plugin.c +++ b/proxy/src/mechglue/gss_plugin.c @@ -105,7 +105,8 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type) if (!envval) { return NULL; } - if ((strcmp(envval, "YES") != 0) && (strcmp(envval, "1") != 0)) { + + if (!gp_boolean_is_true(envval)) { return NULL; } -- cgit