From: Quanah Gibson-Mount Date: Sun, 15 Jan 2017 23:11:53 +0000 (-0800) Subject: ITS#8568 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf8dc030c0eb9e764da16777c342f05ea63f85de;p=openldap ITS#8568 --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index cacb66d137..934e92239d 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1643,7 +1643,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 ) { - sasl_ssf_t ssf = 0; + sasl_ssf_t *ssf = NULL; const char *authid = NULL; sasl_getprop( ctx, SASL_SSF_EXTERNAL, (void *)&ssf ); sasl_getprop( ctx, SASL_AUTH_EXTERNAL, (void *)&authid ); @@ -1656,7 +1656,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs ) slap_sasl_open( op->o_conn, 1 ); ctx = op->o_conn->c_sasl_authctx; if ( authid ) { - sasl_setprop( ctx, SASL_SSF_EXTERNAL, &ssf ); + sasl_setprop( ctx, SASL_SSF_EXTERNAL, ssf ); sasl_setprop( ctx, SASL_AUTH_EXTERNAL, authid ); ch_free( (char *)authid ); }