From c103b3c9e9251e55c01cb377333a1e58fc12df27 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 6 Oct 2007 14:50:02 +0000 Subject: [PATCH] ITS#3864 use sasl_ssf_t where expected --- servers/slapd/sasl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index d9a604efc1..0b3288d2c4 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1448,12 +1448,13 @@ int slap_sasl_external( #if SASL_VERSION_MAJOR >= 2 int sc; sasl_conn_t *ctx = conn->c_sasl_authctx; + sasl_ssf_t sasl_ssf = ssf; if ( ctx == NULL ) { return LDAP_UNAVAILABLE; } - sc = sasl_setprop( ctx, SASL_SSF_EXTERNAL, &ssf ); + sc = sasl_setprop( ctx, SASL_SSF_EXTERNAL, &sasl_ssf ); if ( sc != SASL_OK ) { return LDAP_OTHER; @@ -1622,7 +1623,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs ) if ( !op->o_conn->c_sasl_bind_in_progress ) { /* If we already authenticated once, must use a new context */ if ( op->o_conn->c_sasl_done ) { - slap_ssf_t ssf = 0; + sasl_ssf_t ssf = 0; const char *authid = NULL; #if SASL_VERSION_MAJOR >= 2 sasl_getprop( ctx, SASL_SSF_EXTERNAL, (void *)&ssf ); -- 2.39.5