Skip to content

Commit b19b8d1

Browse files
Günther Deschnersimo5
authored andcommitted
Use gp_boolean_is_true from interposer plugin's GSS_USE_PROXY check.
Signed-off-by: Günther Deschner <[email protected]> Reviewed-by: Simo Sorce <[email protected]>
1 parent 89fc3b6 commit b19b8d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proxy/src/mechglue/gss_plugin.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
105105
if (!envval) {
106106
return NULL;
107107
}
108-
if ((strcmp(envval, "YES") != 0) && (strcmp(envval, "1") != 0)) {
108+
109+
if (!gp_boolean_is_true(envval)) {
109110
return NULL;
110111
}
111112

0 commit comments

Comments
 (0)